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

Disassembly:
mov ecx, dword [0x5b96c8]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4965e9
sub esp, 0x70
mov edx, dword [esp + 0x74]
test edx, edx
je 0x4961c7
lea ebx, [0x594b00]
cmp edx, ebx
jne 0x4961cd
lea eax, [0x5b97a0]
mov dword [esp], eax
lea eax, [0x4ea8ac]
mov dword [esp + 4], eax
call fcn.0046c720
mov edx, dword [esp + 0x74]
jmp 0x4961cd
lea edx, [0x592dc0]
mov ecx, dword [edx + 0xc]
test ecx, ecx
je 0x496382
mov dword [esp + 0x58], ecx
mov ebx, dword [edx + 0x38]
test ebx, ebx
je 0x49629b
mov ebp, dword [edx + 0x28]
mov dword [esp + 0x54], ebp
mov esi, dword [edx + 0x2c]
mov dword [esp + 0x50], esi
mov edi, dword [esp + 0x7c]
cmp edi, esi
sete al
setg cl
mov esi, dword [esp + 0x78]
cmp esi, ebp
xchg ebp, ebx
setae bl
xchg ebp, ebx
and ebp, eax
or ebp, ecx
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x4962a3
mov ebp, dword [edx + 0x30]
mov dword [esp + 0x4c], ebp
mov eax, dword [edx + 0x34]
mov dword [esp + 0x48], eax
cmp edi, eax
sete cl
setl al
cmp esi, ebp
xchg ebp, ebx
setb bl
xchg ebp, ebx
and ecx, ebp
or eax, ecx
test al, al
je 0x4962a3
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
movzx ebx, byte [ebx + 0xc]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edx
mov eax, dword [esp + 0x50]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x94], eax
mov byte [esp + 0x9c], bl
add esp, 0x70
ret
mov esi, dword [esp + 0x78]
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x64], edx
mov ecx, dword [edx + 0x18]
test ecx, ecx
je 0x4962f2
mov ebx, dword [edx + 0x14]
mov ebp, dword [ebx + 4]
cmp edi, ebp
xchg ebp, ebx
sete bl
xchg ebp, ebx
setl al
cmp dword [ebx], esi
seta dl
and edx, ebp
or edx, eax
test dl, dl
jne 0x4962ee
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x44], ecx
mov eax, ecx
xor edx, edx
mov ebp, 0x7fffffff
mov eax, 0xffffffff
mov dword [esp + 0x54], eax
mov eax, ecx
jmp 0x496406
mov edx, dword [esp + 0x64]
mov dword [esp], edx
call fcn.00496600
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 4]
cmp ecx, edx
jbe 0x4963dd
mov ecx, dword [eax + 8]
shl edx, 4
mov ebx, dword [eax + 0x18]
mov ebp, dword [edx + ecx]
mov esi, dword [edx + ecx + 4]
mov edi, dword [edx + ecx + 8]
test ebx, ebx
je 0x49632f
mov eax, dword [eax + 0x14]
mov ebx, dword [eax + 4]
mov eax, dword [eax]
jmp 0x496339
mov ebx, 0x7fffffff
mov eax, 0xffffffff
movzx ecx, byte [edx + ecx + 0xc]
mov dword [esp + 0x80], ebp
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], edi
mov dword [esp + 0x90], 0x80000000
mov dword [esp + 0x8c], 0
mov dword [esp + 0x98], ebx
mov dword [esp + 0x94], eax
mov byte [esp + 0x9c], cl
add esp, 0x70
ret
lea eax, [0x4df555]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], 3
mov dword [esp + 0x88], 0
mov dword [esp + 0x90], 0x80000000
mov dword [esp + 0x8c], 0
mov dword [esp + 0x98], 0x7fffffff
mov dword [esp + 0x94], 0xffffffff
mov byte [esp + 0x9c], 0
add esp, 0x70
ret
mov eax, edx
call fcn.00466790
mov ebx, dword [esp + 0x6c]
mov edi, dword [esp + 0x7c]
mov esi, dword [esp + 0x44]
mov esi, dword [esp + 0x78]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x5c], ecx
mov ecx, ebp
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x50], ebp
sub ecx, edx
cmp ecx, 1
jle 0x496469
mov dword [esp + 0x40], ecx
shr ecx, 0x1f
mov ebp, dword [esp + 0x40]
add ebp, ecx
sar ebp, 1
add ebp, edx
cmp eax, ebp
jbe 0x4965df
lea ecx, [ebp + ebp*2]
mov eax, dword [ebx + ecx*4]
mov ecx, dword [ebx + ecx*4 + 4]
cmp edi, ecx
xchg edi, ebx
setl bl
xchg edi, ebx
sete bl
cmp esi, eax
xchg esi, ebx
setb bl
xchg esi, ebx
and ebx, esi
or ebx, edi
test bl, bl
jne 0x4963e4
mov edx, ebp
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
jmp 0x4963e4
cmp edx, eax
jae 0x4965d6
lea edi, [edx + edx*2]
lea ecx, [ebx + edi*4 + 8]
movzx ecx, byte [ecx]
mov esi, dword [esp + 0x58]
cmp esi, ecx
jbe 0x4965cd
mov esi, dword [esp + 0x64]
mov ebp, dword [esi + 8]
shl ecx, 4
dec eax
mov esi, dword [ecx + ebp]
mov dword [esp + 0x68], esi
mov esi, dword [ecx + ebp + 4]
mov dword [esp + 0x58], esi
mov esi, dword [ecx + ebp + 8]
mov dword [esp + 0x44], esi
mov esi, dword [ebx + edi*4]
mov ebx, dword [ebx + edi*4 + 4]
movzx ecx, byte [ecx + ebp + 0xc]
cmp edx, eax
jne 0x49657d
mov eax, dword [esp + 0x64]
mov edx, dword [eax + 0x24]
test edx, edx
je 0x49657d
mov dword [esp + 0x48], ebx
mov byte [esp + 0x3b], cl
mov dword [esp + 0x4c], esi
mov eax, dword [eax + 0x20]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x10], eax
call fcn.004966d0
movzx eax, byte [esp + 0x35]
test al, al
jne 0x496517
movzx ecx, byte [esp + 0x3b]
mov ebx, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
jmp 0x49657d
mov eax, dword [esp + 0x20]
movzx ecx, byte [esp + 0x34]
mov byte [esp + 0x3a], cl
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], eax
mov dword [esp + 0x90], ebx
mov dword [esp + 0x8c], edi
mov dword [esp + 0x98], ebp
mov dword [esp + 0x94], ecx
movzx eax, byte [esp + 0x3a]
mov byte [esp + 0x9c], al
add esp, 0x70
ret
mov eax, dword [esp + 0x68]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x88], eax
mov dword [esp + 0x90], ebx
mov dword [esp + 0x8c], esi
mov eax, dword [esp + 0x50]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x94], eax
mov byte [esp + 0x9c], cl
add esp, 0x70
ret
mov eax, ecx
mov ecx, esi
call fcn.00466790
mov ecx, eax
mov eax, edx
call fcn.00466790
mov ecx, eax
mov eax, ebp
call fcn.00466790
nop
call fcn.00465370
jmp fcn.00496180