Function at 0x413640
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x48a3f0
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4b1784]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b1784]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov eax, dword [esp + 0x90]
mov ebp, dword [esp + 0x94]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x9c]
push eax
mov ebx, edx
mov dword [esp + 0x38], ecx
call fcn.00415180
mov edi, eax
add esp, 4
lea esi, [esp + 0x60]
mov ecx, edi
call fcn.00410350
mov dword [esp + 0x88], 0
cmp dword [esp + 0x74], 0
jne 0x4136c4
xor edi, edi
mov dword [esp + 0x3c], edi
jmp 0x4136d6
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
movzx ecx, ax
mov dword [esp + 0x3c], ecx
xor edi, edi
add ebx, 8
push ebx
lea edx, [esp + 0x2c]
push edx
push 1
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
push ecx
mov byte [esp + 0x2c], 0x30
mov dword [esp + 0x4c], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x54], ebx
call fcn.00460e11
mov edx, dword [esp + 0x44]
add esp, 0x14
cmp byte [ebp + 8], 0
mov dword [esp + 0x2c], edx
jne 0x413719
mov esi, ebp
call fcn.00415000
mov esi, dword [esp + 0x34]
cmp byte [esi + 8], 0
jne 0x413728
call fcn.00415000
mov eax, dword [ebp + 4]
cmp eax, edi
jne 0x41373c
cmp dword [esi + 4], edi
je 0x4137e1
cmp eax, edi
je 0x413745
cmp dword [esi + 4], edi
jne 0x4137e1
cmp byte [ebp + 8], 0
jne 0x413752
mov esi, ebp
call fcn.00415000
movzx esi, word [ebp + 0xa]
push ebx
lea eax, [esp + 0x24]
push eax
push 1
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x2c], 0x2b
mov dword [esp + 0x3c], edi
mov dword [esp + 0x34], edi
call fcn.00460e11
add esp, 0x14
cmp si, word [esp + 0x28]
jne 0x41378d
mov eax, dword [esp + 0x30]
mov byte [eax], 0x2b
jmp 0x4137d3
cmp byte [ebp + 8], 0
jne 0x41379a
mov esi, ebp
call fcn.00415000
movzx esi, word [ebp + 0xa]
push ebx
lea eax, [esp + 0x24]
push eax
push 1
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x2c], 0x2d
mov dword [esp + 0x3c], edi
mov dword [esp + 0x34], edi
call fcn.00460e11
add esp, 0x14
cmp si, word [esp + 0x28]
jne 0x4137e1
mov eax, dword [esp + 0x30]
mov byte [eax], 0x2d
add eax, 1
mov esi, ebp
mov dword [esp + 0x2c], eax
call fcn.00414fb0
mov eax, dword [esp + 0x98]
and eax, 0xe00
cmp eax, 0x400
jne 0x4137fe
mov dword [esp + 0x20], 8
jmp 0x41381a
cmp eax, 0x800
jne 0x41380f
mov dword [esp + 0x20], 0x10
jmp 0x41381a
neg eax
sbb eax, eax
and eax, 0xa
mov dword [esp + 0x20], eax
mov ebx, dword [esp + 0x34]
mov edi, ebp
mov byte [esp + 0x1f], 0
mov byte [esp + 0x27], 0
call fcn.004156a0
test al, al
je 0x4138e2
cmp byte [ebp + 8], 0
jne 0x413844
mov esi, ebp
call fcn.00415000
movzx eax, word [ebp + 0xa]
cmp ax, word [esp + 0x38]
jne 0x4138e2
mov esi, ebp
mov byte [esp + 0x1f], 1
call fcn.00414fb0
mov edi, ebp
call fcn.004156a0
test al, al
je 0x4138d1
cmp byte [ebp + 8], 0
jne 0x413875
call fcn.00415000
mov edi, dword [esp + 0x40]
movzx esi, word [ebp + 0xa]
push edi
push 0x78
call fcn.00401530
add esp, 8
cmp si, ax
je 0x4138ae
cmp byte [ebp + 8], 0
jne 0x41389a
mov esi, ebp
call fcn.00415000
movzx esi, word [ebp + 0xa]
push edi
push 0x58
call fcn.00401530
add esp, 8
cmp si, ax
jne 0x4138d1
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4138bb
cmp eax, 0x10
jne 0x4138d1
mov esi, ebp
mov dword [esp + 0x20], 0x10
mov byte [esp + 0x1f], 0
call fcn.00414fb0
jmp 0x4138f0
cmp dword [esp + 0x20], 0
jne 0x4138e9
mov dword [esp + 0x20], 8
jmp 0x4138f0
cmp dword [esp + 0x20], 0
je 0x413907
cmp dword [esp + 0x20], 0xa
je 0x413907
mov edi, dword [esp + 0x20]
sub edi, 8
neg edi
sbb edi, edi
and edi, 0xe
add edi, 8
mov dword [esp + 0x28], edi
jmp 0x413913
mov dword [esp + 0x28], 0xa
mov edi, dword [esp + 0x28]
mov al, byte [esp + 0x1f]
mov dword [esp + 0x5c], 0xf
mov byte [esp + 0x48], al
mov dword [esp + 0x58], 1
mov byte [esp + 0x49], 0
mov esi, dword [esp + 0x34]
mov byte [esp + 0x88], 1
xor ebx, ebx
mov edi, edi
cmp byte [ebp + 8], 0
jne 0x413988
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x41397d
mov eax, dword [ecx + 0x20]
cmp dword [eax], 0
je 0x413964
mov edx, dword [ecx + 0x30]
cmp dword [edx], 0
jle 0x413964
mov eax, dword [eax]
movzx eax, word [eax]
jmp 0x41396e
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
movzx eax, ax
movzx eax, ax
cmp ax, 0xffff
je 0x41397d
mov word [ebp + 0xa], ax
jmp 0x413984
mov dword [ebp + 4], 0
mov byte [ebp + 8], 1
cmp byte [esi + 8], 0
jne 0x4139d0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4139c5
mov eax, dword [ecx + 0x20]
cmp dword [eax], 0
je 0x4139ac
mov edx, dword [ecx + 0x30]
cmp dword [edx], 0
jle 0x4139ac
mov eax, dword [eax]
movzx eax, word [eax]
jmp 0x4139b6
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
movzx eax, ax
movzx eax, ax
cmp ax, 0xffff
je 0x4139c5
mov word [esi + 0xa], ax
jmp 0x4139cc
mov dword [esi + 4], 0
mov byte [esi + 8], 1
mov ecx, dword [ebp + 4]
test ecx, ecx
jne 0x413a14
cmp dword [esi + 4], ecx
jne 0x413a1a
test ebx, ebx
je 0x413bd7
cmp ebx, dword [esp + 0x58]
jbe 0x4139ef
call fcn.0046a455
mov eax, dword [esp + 0x48]
mov edi, 0x10
cmp dword [esp + 0x5c], edi
jae 0x413a02
lea eax, [esp + 0x48]
cmp byte [eax + ebx], 0
jle 0x413bd0
add ebx, 1
jmp 0x413bdc
cmp dword [esi + 4], 0
jne 0x4139dc
cmp byte [ebp + 8], 0
jne 0x413a5f
test ecx, ecx
je 0x413a54
mov eax, dword [ecx + 0x20]
cmp dword [eax], 0
je 0x413a3b
mov edx, dword [ecx + 0x30]
cmp dword [edx], 0
jle 0x413a3b
mov eax, dword [eax]
movzx eax, word [eax]
jmp 0x413a45
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
movzx eax, ax
movzx eax, ax
cmp ax, 0xffff
je 0x413a54
mov word [ebp + 0xa], ax
jmp 0x413a5b
mov dword [ebp + 4], 0
mov byte [ebp + 8], 1
mov ecx, dword [esp + 0x40]
movzx eax, word [ebp + 0xa]
push ecx
lea edx, [esp + 0x3c]
push edx
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x28], 0
mov dword [esp + 0x48], 0
call fcn.00460c59
mov al, byte [esp + 0x28]
mov edx, dword [esp + 0x3c]
mov byte [edx], al
movsx eax, al
push edi
push eax
push str.0123456789abcdefABCDEF
call fcn.0046aac0
add esp, 0x1c
test eax, eax
je 0x413b15
cmp byte [esp + 0x27], 0
jne 0x413ab5
mov ecx, dword [esp + 0x2c]
cmp byte [ecx], 0x30
je 0x413acc
mov eax, dword [esp + 0x30]
add eax, 0x1f
cmp dword [esp + 0x2c], eax
jae 0x413acc
add dword [esp + 0x2c], 1
mov byte [esp + 0x27], 1
cmp ebx, dword [esp + 0x58]
mov byte [esp + 0x1f], 1
jbe 0x413adc
call fcn.0046a455
cmp dword [esp + 0x5c], 0x10
mov eax, dword [esp + 0x48]
jae 0x413aeb
lea eax, [esp + 0x48]
cmp byte [eax + ebx], 0x7f
je 0x413b7c
cmp ebx, dword [esp + 0x58]
jbe 0x413b00
call fcn.0046a455
cmp dword [esp + 0x5c], 0x10
mov eax, dword [esp + 0x48]
jae 0x413b0f
lea eax, [esp + 0x48]
add byte [eax + ebx], 1
jmp 0x413b7c
cmp ebx, dword [esp + 0x58]
jbe 0x413b20
call fcn.0046a455
cmp dword [esp + 0x5c], 0x10
mov eax, dword [esp + 0x48]
jae 0x413b2f
lea eax, [esp + 0x48]
cmp byte [eax + ebx], 0
je 0x4139dc
cmp word [esp + 0x3c], 0
je 0x4139dc
cmp byte [ebp + 8], 0
jne 0x413b52
mov esi, ebp
call fcn.00415000
mov dx, word [esp + 0x3c]
cmp word [ebp + 0xa], dx
jne 0x4139dc
push 0
mov eax, 1
lea edi, [esp + 0x48]
call fcn.0040b990
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x34]
add ebx, 1
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x413bc0
mov eax, dword [ecx + 0x20]
cmp dword [eax], 0
je 0x413ba7
mov edx, dword [ecx + 0x30]
cmp dword [edx], 0
jle 0x413ba7
mov eax, edx
add dword [eax], 0xffffffff
mov ecx, dword [ecx + 0x20]
mov eax, dword [ecx]
lea edx, [eax + 2]
mov dword [ecx], edx
movzx eax, word [eax]
jmp 0x413bb1
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
call edx
movzx eax, ax
cmp ax, 0xffff
je 0x413bc0
mov byte [ebp + 8], 0
jmp 0x413940
mov dword [ebp + 4], 0
mov byte [ebp + 8], 1
jmp 0x413940
mov byte [esp + 0x1f], 0
jmp 0x413bdc
mov edi, 0x10
cmp dword [esp + 0x78], edi
mov esi, dword [esp + 0x64]
jae 0x413bea
lea esi, [esp + 0x64]
cmp byte [esp + 0x1f], 0
je 0x413c6b
test ebx, ebx
jbe 0x413c58
cmp byte [esi], 0x7f
je 0x413c58
sub ebx, 1
je 0x413c24
cmp ebx, dword [esp + 0x58]
jbe 0x413c0f
call fcn.0046a455
mov edi, 0x10
cmp dword [esp + 0x5c], edi
mov eax, dword [esp + 0x48]
jae 0x413c1d
lea eax, [esp + 0x48]
mov cl, byte [esi]
cmp cl, byte [eax + ebx]
jne 0x413c6b
test ebx, ebx
jne 0x413c4d
cmp ebx, dword [esp + 0x58]
jbe 0x413c38
call fcn.0046a455
mov edi, 0x10
cmp dword [esp + 0x5c], edi
mov eax, dword [esp + 0x48]
jae 0x413c46
lea eax, [esp + 0x48]
mov dl, byte [esi]
cmp dl, byte [eax + ebx]
jl 0x413c6b
cmp byte [esi + 1], 0
jle 0x413bf1
add esi, 1
jmp 0x413bf1
cmp byte [esp + 0x27], 0
mov eax, dword [esp + 0x2c]
jne 0x413c6f
mov byte [eax], 0x30
add eax, 1
jmp 0x413c6f
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x5c], edi
mov byte [eax], 0
jb 0x413c8a
mov eax, dword [esp + 0x48]
push eax
call fcn.00469050
add esp, 4
mov edi, 0x10
cmp dword [esp + 0x78], edi
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
jb 0x413cb2
mov ecx, dword [esp + 0x64]
push ecx
call fcn.00469050
add esp, 4
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00469efd
add esp, 0x78
ret