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

Disassembly:
sub esp, 0x9c
push ebx
mov ebx, dword [esp + 0xa8]
xor eax, eax
push ebp
mov ebp, dword [esp + 0xa8]
push esi
push edi
lea esi, [esp + 0x14]
mov edi, ebx
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], eax
call fcn.004949b0
test eax, eax
jne 0x496ab5
mov eax, dword [esp + 0x14]
cmp eax, 2
jne 0x49614a
cmp dword [esp + 0x18], 0
jne 0x49614a
lea esi, [esp + 0x44]
call fcn.004949b0
test eax, eax
jne 0x496ab5
mov edi, edi
mov eax, dword [esp + 0x44]
or eax, dword [esp + 0x48]
je 0x496133
mov eax, ebx
call fcn.00494b40
test eax, eax
jne 0x496ab5
lea esi, [esp + 0x44]
mov edi, ebx
call fcn.004949b0
test eax, eax
je 0x496100
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret
lea esi, [esp + 0x14]
mov edi, ebx
call fcn.004949b0
test eax, eax
jne 0x496ab5
mov eax, dword [esp + 0x14]
cmp eax, 3
jne 0x4961e5
cmp dword [esp + 0x18], 0
jne 0x4961e5
lea eax, [esp + 0x80]
call fcn.00494820
mov esi, dword [esp + 0xc8]
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp + 0x30]
mov eax, dword [esp + 0xbc]
push esi
push ecx
mov ecx, dword [esp + 0xc0]
push edx
push eax
push ebx
push ecx
lea edi, [esp + 0x98]
mov edx, 8
call fcn.00495db0
mov edx, dword [esp + 0x9c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xd8]
add esp, 0x18
mov dword [eax], edx
call fcn.00494850
cmp dword [esp + 0x2c], 0
je 0x4961ce
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret
lea esi, [esp + 0x14]
mov edi, ebx
call fcn.004949b0
test eax, eax
jne 0x496ab5
mov eax, dword [esp + 0x14]
cmp eax, 4
jne 0x496257
cmp dword [esp + 0x18], 0
jne 0x496257
mov ecx, dword [esp + 0xc4]
mov edx, dword [esp + 0xc0]
mov eax, dword [edx]
push ecx
mov ecx, dword [esp + 0xc0]
lea esi, [ebp + 0x38]
push esi
push eax
mov eax, dword [esp + 0xc0]
push ecx
push 0x40000000
push ebp
lea ebx, [esp + 0x68]
call fcn.00495c90
add esp, 0x18
test eax, eax
jne 0x496ab5
mov edx, dword [ebp + 0x30]
add dword [esi], edx
mov eax, dword [ebp + 0x34]
mov edi, dword [esp + 0xb4]
adc dword [esi + 4], eax
lea esi, [esp + 0x14]
call fcn.004949b0
test eax, eax
jne 0x496ab5
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, eax
or edx, ecx
jne 0x49626e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x9c
ret
cmp eax, 5
jne 0x496ab0
xor eax, eax
cmp ecx, eax
jne 0x496ab0
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0xb4]
lea ebx, [esp + 0x20]
call fcn.00494ac0
test eax, eax
jne 0x496ab5
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0xb4]
lea esi, [esp + 0x14]
mov edi, ebx
mov dword [ebp + 0x40], eax
call fcn.004949b0
test eax, eax
jne 0x496ab5
lea ebx, [ebx]
mov ecx, dword [esp + 0x14]
or ecx, dword [esp + 0x18]
je 0x4965ac
lea esi, [esp + 0x34]
mov edi, ebx
call fcn.004949b0
test eax, eax
jne 0x496ab5
mov edx, dword [esp + 0x38]
mov eax, dword [ebx + 4]
xor ecx, ecx
cmp edx, ecx
ja 0x496ab0
mov esi, dword [esp + 0x34]
jb 0x496310
cmp esi, eax
ja 0x496ab0
cmp dword [esp + 0x18], ecx
ja case.0x496336.16
mov ecx, dword [esp + 0x14]
cmp ecx, 0x100
jae case.0x496336.16
add ecx, 0xfffffff2
cmp ecx, 7
ja case.0x496336.16
jmp dword [ecx*4 + 0x496ad0]
test eax, eax
je 0x496ab0
dec eax
mov dword [ebx + 4], eax
mov eax, dword [ebx]
mov cl, byte [eax]
inc eax
mov byte [esp + 0x13], cl
mov dword [ebx], eax
test cl, cl
jne 0x496361
dec esi
mov dword [esp + 0x1c], esi
mov edi, eax
jmp 0x4963a5
mov eax, dword [esp + 0xb4]
lea ebx, [esp + 0x44]
call fcn.00494ac0
test eax, eax
jne 0x496ab5
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0xc0]
cmp ecx, dword [eax]
jae 0x496ab0
mov eax, dword [esp + 0xbc]
mov edi, dword [eax + ecx*8]
mov ecx, dword [eax + ecx*8 + 4]
mov ebx, dword [esp + 0xb4]
mov dword [esp + 0x1c], ecx
test byte [esp + 0x1c], 1
jne 0x496ab0
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0xc4]
mov ecx, dword [esi]
lea eax, [edx*4 + 4]
push eax
push esi
call ecx
add esp, 8
mov dword [ebp + 0x74], eax
test eax, eax
je 0x496ac0
mov edx, dword [esp + 0x1c]
test edx, edx
jne 0x4963e2
xor ebp, ebp
jmp 0x496409
push edx
mov edx, dword [esi]
push esi
call edx
add esp, 8
mov dword [ebp + 0x78], eax
test eax, eax
je 0x496ac0
mov ecx, dword [esp + 0x1c]
push ecx
push edi
push eax
call fcn.0047e650
mov edx, dword [esp + 0x28]
add esp, 0xc
mov ecx, dword [ebp + 0x74]
mov eax, dword [esp + 0x20]
mov edi, edx
mov edx, dword [ebp + 0x78]
call fcn.00495ed0
test eax, eax
jne 0x496ab5
cmp byte [esp + 0x13], al
jne 0x49658e
mov eax, dword [esp + 0x1c]
sub dword [ebx + 4], eax
add dword [ebx], eax
jmp 0x49658e
mov edi, dword [esp + 0x20]
lea esi, [esp + 0x30]
mov eax, edi
mov ecx, ebx
call fcn.00494c00
test eax, eax
jne 0x496ab5
mov ecx, dword [esp + 0x30]
mov eax, edi
call fcn.00494c20
mov dword [esp + 0x24], eax
mov dword [esp + 0x4c], 0
jmp 0x49658e
mov eax, dword [esp + 0x24]
lea esi, [esp + 0x4c]
mov ecx, ebx
call fcn.00494c00
test eax, eax
jne 0x496ab5
jmp 0x49658e
mov edi, dword [esp + 0xc4]
lea esi, [ebp + 0x54]
push edi
push esi
call fcn.004947f0
mov eax, dword [esp + 0x28]
push edi
push esi
mov ecx, ebx
call fcn.00494c60
add esp, 0x10
test eax, eax
jne 0x496ab5
mov eax, dword [ebx + 4]
test eax, eax
je 0x496ab0
dec eax
mov dword [ebx + 4], eax
mov eax, dword [ebx]
mov cl, byte [eax]
inc eax
mov dword [ebx], eax
test cl, cl
jne 0x4964d2
mov eax, ebx
jmp 0x49651e
mov eax, dword [esp + 0xb4]
lea ebx, [esp + 0x2c]
call fcn.00494ac0
test eax, eax
jne 0x496ab5
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0xc0]
cmp ecx, dword [edx]
jae 0x496ab0
mov eax, dword [esp + 0xbc]
mov edx, dword [eax + ecx*8]
mov eax, dword [eax + ecx*8 + 4]
mov ebx, dword [esp + 0xb4]
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], edx
lea eax, [esp + 0x3c]
mov ecx, dword [esp + 0x20]
push ecx
push eax
mov eax, edi
mov ecx, esi
call fcn.00494d30
add esp, 8
test eax, eax
jne 0x496ab5
jmp 0x49658e
mov edx, dword [esp + 0xc4]
mov eax, dword [esp + 0xc0]
mov ecx, dword [eax]
push edx
push ecx
lea ecx, [ebp + 0x5c]
mov edx, dword [esp + 0xc4]
mov eax, dword [esp + 0x28]
push edx
push ebx
push eax
push ecx
call fcn.00495f40
add esp, 0x18
test eax, eax
jne 0x496ab5
jmp 0x49658e
mov edx, dword [esp + 0xc4]
mov eax, dword [esp + 0xc0]
mov ecx, dword [eax]
push edx
push ecx
lea ecx, [ebp + 0x64]
jmp 0x49654f
sub eax, esi
add dword [ebx], esi
mov dword [ebx + 4], eax
lea esi, [esp + 0x14]
mov edi, ebx
call fcn.004949b0
test eax, eax
je 0x4962d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret
mov edx, dword [esp + 0x20]
sub edx, dword [esp + 0x24]
cmp edx, dword [esp + 0x50]
jne 0x496ab0
lea esi, [esp + 0x14]
mov edi, ebx
call fcn.004949b0
test eax, eax
jne 0x496ab5
mov eax, dword [esp + 0x14]
or eax, dword [esp + 0x18]
je 0x496604
mov eax, ebx
call fcn.00494b40
test eax, eax
jne 0x496ab5
lea esi, [esp + 0x14]
mov edi, ebx
call fcn.004949b0
test eax, eax
je 0x4965d1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret
mov ecx, dword [ebp + 4]
mov esi, dword [esp + 0xc4]
mov eax, dword [esi]
xor edi, edi
lea edx, [ecx*4 + 4]
push edx
push esi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x2c], edi
mov byte [esp + 0x1b], 0
mov byte [esp + 0x1a], 0
mov byte [esp + 0x19], 0
mov byte [esp + 0x18], 0x80
call eax
add esp, 8
mov dword [ebp + 0x6c], eax
cmp eax, edi
je 0x496ac0
mov eax, dword [ebp + 0x40]
cmp eax, edi
jne 0x49666b
mov dword [ebp + 0x70], edi
jmp 0x496686
mov edx, dword [esi]
lea ecx, [eax*4]
push ecx
push esi
call edx
add esp, 8
mov dword [ebp + 0x70], eax
cmp eax, edi
je 0x496ac0
mov eax, dword [ebp + 0x40]
mov edx, dword [esi]
lea ecx, [eax*8 + 8]
push ecx
push esi
call edx
add esp, 8
mov dword [ebp + 0x44], eax
cmp eax, edi
je 0x496ac0
mov eax, dword [ebp + 0x40]
add eax, 7
shr eax, 3
cmp eax, edi
jne 0x4966b6
mov dword [ebp + 0x48], edi
jmp 0x4966ca
push eax
mov eax, dword [esi]
push esi
call eax
add esp, 8
mov dword [ebp + 0x48], eax
cmp eax, edi
je 0x496ac0
mov edi, dword [ebp + 0x40]
lea ebx, [ebp + 0x4c]
call fcn.004947a0
test eax, eax
jne 0x496ab5
cmp dword [esp + 0x6c], eax
je 0x496714
mov eax, dword [esp + 0x68]
mov cl, byte [eax]
dec dword [esp + 0x6c]
inc eax
mov byte [esp + 0x13], cl
mov dword [esp + 0x68], eax
test cl, cl
je 0x496700
mov dword [esp + 0x24], eax
jmp 0x496714
mov ecx, dword [esp + 0x54]
add ecx, 7
shr ecx, 3
add ecx, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], ecx
cmp dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
jbe 0x496a3b
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x24], ecx
nop
cmp byte [esp + 0x10], 0
mov esi, dword [esp + 0x28]
jne 0x496766
movzx ecx, byte [esp + 0x12]
mov edx, dword [ebp + 0x48]
mov eax, esi
dec eax
shr eax, 3
mov byte [eax + edx], cl
movzx ecx, byte [esp + 0x11]
mov edx, dword [ebp + 0x4c]
mov byte [eax + edx], cl
mov byte [esp + 0x12], 0
mov byte [esp + 0x11], 0
mov byte [esp + 0x10], 0x80
mov eax, dword [ebp + 0x44]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x30]
mov dword [eax + esi*8], edx
mov dword [eax + esi*8 + 4], ecx
mov edx, dword [ebp + 0x50]
mov dword [edx + esi*4], 0
test ebx, ebx
je 0x4967f7
mov ecx, esi
and ecx, 7
mov eax, 0x80
sar eax, cl
mov ecx, esi
shr ecx, 3
mov dl, byte [ecx + ebx]
test dl, al
je 0x4967f7
mov edi, dword [esp + 0x4c]
test edi, edi
je 0x4967d5
mov eax, dword [esp + 0x44]
mov ecx, eax
and ecx, 7
mov edx, 0x80
sar edx, cl
mov ecx, eax
shr ecx, 3
mov cl, byte [ecx + edi]
test cl, dl
jne 0x4967ce
mov dl, byte [esp + 0x10]
or byte [esp + 0x12], dl
inc eax
mov dword [esp + 0x44], eax
jmp 0x4967dd
mov al, byte [esp + 0x10]
or byte [esp + 0x12], al
cmp dword [esp + 0x3c], 0
jne 0x496878
mov ecx, dword [ebp + 0x70]
mov dword [ecx + esi*4], 0xffffffff
jmp 0x496a03
cmp dword [esp + 0x3c], 0
jne 0x496878
mov edi, dword [esp + 0x1c]
cmp edi, dword [ebp + 4]
jae 0x496ab0
cmp dword [esp + 0x58], 0
mov edx, dword [ebp + 0x6c]
mov dword [edx + edi*4], esi
mov dword [esp + 0x34], 1
je 0x496839
lea ebx, [esp + 0x34]
lea eax, [esp + 0x58]
call fcn.00494ac0
test eax, eax
jne 0x496ab5
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x49687c
push edi
push ebp
call fcn.00495a30
mov ecx, dword [esp + 0x20]
add esp, 8
add dword [esp + 0x14], eax
adc ecx, edx
mov dword [esp + 0x18], ecx
cmp ecx, edx
jb 0x496ab0
ja 0x496871
cmp dword [esp + 0x14], eax
jb 0x496ab0
inc edi
mov dword [esp + 0x1c], edi
jmp 0x496802
mov edi, dword [esp + 0x1c]
mov eax, dword [ebp + 0x70]
mov dword [eax + esi*4], edi
test ebx, ebx
je 0x4968a4
mov ecx, esi
and ecx, 7
mov edx, 0x80
sar edx, cl
shr esi, 3
mov al, byte [esi + ebx]
test al, dl
jne 0x496a03
mov edi, dword [esp + 0x1c]
sub dword [esp + 0x3c], 1
jne 0x496991
push edi
push ebp
call fcn.00495a30
mov ecx, dword [ebp + 0x6c]
mov ebx, edx
mov edx, dword [ecx + edi*4]
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 0x44]
mov ecx, dword [eax + edx*8]
mov esi, dword [eax + edx*8 + 4]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
add esp, 8
sub eax, ecx
sbb edx, esi
cmp ebx, edx
jb 0x496ab0
mov edx, dword [esp + 0x70]
ja 0x4968f1
cmp edx, eax
jb 0x496ab0
add ecx, edx
adc esi, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], esi
cmp esi, ebx
jb 0x496ab0
ja 0x49690f
cmp ecx, edx
jb 0x496ab0
cmp dword [esp + 0x34], 1
jne 0x496957
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x496957
mov eax, dword [esp + 0x28]
mov ecx, eax
and ecx, 7
mov edx, 0x80
sar edx, cl
mov ecx, eax
shr ecx, 3
mov cl, byte [ecx + esi]
test cl, dl
je 0x49695b
mov edx, dword [ebp + 0x10]
mov edx, dword [edx + edi*4]
mov ecx, dword [ebp + 0x50]
mov dword [ecx + eax*4], edx
mov al, byte [esp + 0x10]
or byte [esp + 0x11], al
inc edi
mov dword [esp + 0x1c], edi
jmp 0x496a03
mov eax, dword [esp + 0x28]
cmp byte [esp + 0x13], 0
jne 0x49696f
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x49698a
test byte [ecx], 0x80
je 0x49698a
mov ecx, dword [esp + 0x24]
mov esi, dword [ecx]
mov edx, dword [ebp + 0x50]
mov dword [edx + eax*4], esi
mov al, byte [esp + 0x10]
add ecx, 4
or byte [esp + 0x11], al
mov dword [esp + 0x24], ecx
inc edi
mov dword [esp + 0x1c], edi
jmp 0x496a03
lea esi, [esp + 0x78]
lea edi, [esp + 0x60]
call fcn.004949b0
test eax, eax
jne 0x496ab5
mov edx, dword [esp + 0x78]
add dword [esp + 0x14], edx
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x18]
adc ecx, eax
mov dword [esp + 0x18], ecx
cmp ecx, eax
jb 0x496ab0
ja 0x4969d0
cmp dword [esp + 0x14], edx
jb 0x496ab0
cmp byte [esp + 0x13], 0
jne 0x4969e4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x496a03
test byte [eax], 0x80
je 0x496a03
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x50]
mov esi, dword [esp + 0x28]
add eax, 4
mov dword [esp + 0x24], eax
mov al, byte [esp + 0x10]
or byte [esp + 0x11], al
mov dword [ecx + esi*4], edx
mov eax, dword [esp + 0x28]
shr byte [esp + 0x10], 1
inc eax
mov dword [esp + 0x28], eax
cmp eax, dword [esp + 0x20]
jb 0x496730
cmp byte [esp + 0x10], 0x80
je 0x496a3b
movzx edx, byte [esp + 0x12]
mov ecx, dword [ebp + 0x48]
dec eax
shr eax, 3
mov byte [eax + ecx], dl
movzx edx, byte [esp + 0x11]
mov ecx, dword [ebp + 0x4c]
mov byte [eax + ecx], dl
cmp dword [esp + 0x3c], 0
mov eax, dword [ebp + 0x44]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov dword [eax + ecx*8], edx
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*8 + 4], edx
jne 0x496ab0
mov eax, dword [esp + 0x1c]
mov edx, dword [ebp + 0x6c]
mov dword [edx + eax*4], ecx
cmp eax, dword [ebp + 4]
jae 0x496a9a
mov esi, eax
mov edi, ecx
jmp 0x496a70
cmp dword [esp + 0x58], 0
je 0x496ab0
lea ebx, [esp + 0x34]
lea eax, [esp + 0x58]
call fcn.00494ac0
test eax, eax
jne 0x496ab5
cmp dword [esp + 0x34], eax
jne 0x496ab0
mov eax, dword [ebp + 0x6c]
inc esi
mov dword [eax + esi*4], edi
cmp esi, dword [ebp + 4]
jb 0x496a70
cmp dword [esp + 0x58], 0
je 0x496261
cmp dword [esp + 0x5c], 0
je 0x496261
mov eax, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x9c
ret