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

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0x80]
test al, al
jne 0x4952ad
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esi + 0x7c]
mov byte [esi + 0x80], 0
cmp eax, 1
jne 0x4952e8
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x74]
mov edi, dword [ecx]
mov ebp, dword [edx]
mov ecx, dword [esi + 0x38]
sub edi, ebp
push edi
push eax
mov edx, dword [ecx]
call dword [edx + 0x1c]
cmp eax, edi
jge 0x495606
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 8
ret
mov edx, dword [esi + 0x74]
mov eax, dword [esi + 0x20]
lea ebp, [esi + 0x3c]
mov ecx, dword [esi + 0x78]
lea edi, [edx + 0x2000]
mov dword [esp + 0x14], ebp
mov dword [ebp], edx
mov eax, dword [eax]
sub eax, edx
push eax
mov dword [esi + 0x40], eax
call fcn.0064df90
mov dword [esi + 0x78], eax
mov ebx, 0x2000
mov edx, 4
mov ecx, ebp
call fcn.0064cf60
test eax, eax
je 0x49532b
cmp eax, 0xfffffffb
jne 0x49534f
mov ecx, dword [esi + 0x4c]
mov eax, ebx
sub eax, ecx
mov ecx, dword [esi + 0x38]
push eax
push edi
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov edx, dword [esi + 0x4c]
mov ecx, ebx
sub ecx, edx
cmp eax, ecx
jb 0x4952dd
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], ebx
jmp 0x495316
mov ecx, dword [esi + 0x4c]
mov eax, ebx
sub eax, ecx
mov ecx, dword [esi + 0x38]
push eax
push edi
mov edx, dword [ecx]
call dword [edx + 0x1c]
sub ebx, dword [esi + 0x4c]
cmp eax, ebx
jb 0x4952dd
mov ecx, dword [esi + 0x38]
mov ebx, dword [esi + 0x78]
mov eax, dword [ecx + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x49539e
mov edx, dword [ecx + 0x30]
mov edi, dword [edx]
lea ebp, [edi + eax]
cmp eax, ebp
jae 0x49539e
dec edi
mov dword [edx], edi
mov ecx, dword [ecx + 0x20]
mov eax, dword [ecx]
lea edx, [eax + 1]
mov dword [ecx], edx
mov byte [eax], bl
mov eax, ebx
and eax, 0xff
jmp 0x4953ac
mov eax, dword [ecx]
mov edx, ebx
and edx, 0xff
push edx
call dword [eax + 4]
cmp eax, 0xffffffff
je 0x4952dd
mov ecx, dword [esi + 0x38]
mov edx, ebx
shr edx, 8
mov eax, dword [ecx + 0x20]
mov byte [esp + 0x10], dl
mov eax, dword [eax]
test eax, eax
je 0x4953f1
mov edi, dword [ecx + 0x30]
mov ebp, dword [edi]
add ebp, eax
cmp eax, ebp
jae 0x4953f1
mov eax, dword [edi]
dec eax
mov dword [edi], eax
mov ecx, dword [ecx + 0x20]
mov eax, dword [ecx]
lea edi, [eax + 1]
mov dword [ecx], edi
mov byte [eax], dl
mov eax, dword [esp + 0x10]
and eax, 0xff
jmp 0x495400
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
and eax, 0xff
push eax
call dword [edx + 4]
cmp eax, 0xffffffff
je 0x4952dd
mov ecx, dword [esi + 0x38]
mov edx, ebx
shr edx, 0x10
mov eax, dword [ecx + 0x20]
mov byte [esp + 0x10], dl
mov eax, dword [eax]
test eax, eax
je 0x495445
mov edi, dword [ecx + 0x30]
mov ebp, dword [edi]
add ebp, eax
cmp eax, ebp
jae 0x495445
mov eax, dword [edi]
dec eax
mov dword [edi], eax
mov ecx, dword [ecx + 0x20]
mov eax, dword [ecx]
lea edi, [eax + 1]
mov dword [ecx], edi
mov byte [eax], dl
mov eax, dword [esp + 0x10]
and eax, 0xff
jmp 0x495454
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
and eax, 0xff
push eax
call dword [edx + 4]
cmp eax, 0xffffffff
je 0x4952dd
mov ecx, dword [esi + 0x38]
shr ebx, 0x18
mov edx, dword [ecx + 0x20]
mov byte [esp + 0x10], bl
mov eax, dword [edx]
test eax, eax
je 0x495496
mov edx, dword [ecx + 0x30]
mov edi, dword [edx]
lea ebp, [edi + eax]
cmp eax, ebp
jae 0x495496
dec edi
mov dword [edx], edi
mov ecx, dword [ecx + 0x20]
mov eax, dword [ecx]
lea edx, [eax + 1]
mov dword [ecx], edx
mov byte [eax], bl
mov eax, dword [esp + 0x10]
and eax, 0xff
jmp 0x4954a6
mov edx, dword [esp + 0x10]
mov eax, dword [ecx]
and edx, 0xff
push edx
call dword [eax + 4]
cmp eax, 0xffffffff
je 0x4952dd
mov ecx, dword [esi + 0x38]
mov ebx, dword [esi + 0x44]
mov eax, dword [ecx + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x4954e2
mov edx, dword [ecx + 0x30]
mov edi, dword [edx]
lea ebp, [edi + eax]
cmp eax, ebp
jae 0x4954e2
dec edi
mov dword [edx], edi
mov ecx, dword [ecx + 0x20]
mov eax, dword [ecx]
lea edx, [eax + 1]
mov dword [ecx], edx
mov byte [eax], bl
mov eax, ebx
and eax, 0xff
jmp 0x4954f0
mov eax, dword [ecx]
mov edx, ebx
and edx, 0xff
push edx
call dword [eax + 4]
cmp eax, 0xffffffff
je 0x4952dd
mov ecx, dword [esi + 0x38]
mov edx, ebx
shr edx, 8
mov eax, dword [ecx + 0x20]
mov byte [esp + 0x10], dl
mov eax, dword [eax]
test eax, eax
je 0x495535
mov edi, dword [ecx + 0x30]
mov ebp, dword [edi]
add ebp, eax
cmp eax, ebp
jae 0x495535
mov eax, dword [edi]
dec eax
mov dword [edi], eax
mov ecx, dword [ecx + 0x20]
mov eax, dword [ecx]
lea edi, [eax + 1]
mov dword [ecx], edi
mov byte [eax], dl
mov eax, dword [esp + 0x10]
and eax, 0xff
jmp 0x495544
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
and eax, 0xff
push eax
call dword [edx + 4]
cmp eax, 0xffffffff
je 0x4952dd
mov ecx, dword [esi + 0x38]
mov edx, ebx
shr edx, 0x10
mov eax, dword [ecx + 0x20]
mov byte [esp + 0x10], dl
mov eax, dword [eax]
test eax, eax
je 0x495589
mov edi, dword [ecx + 0x30]
mov ebp, dword [edi]
add ebp, eax
cmp eax, ebp
jae 0x495589
mov eax, dword [edi]
dec eax
mov dword [edi], eax
mov ecx, dword [ecx + 0x20]
mov eax, dword [ecx]
lea edi, [eax + 1]
mov dword [ecx], edi
mov byte [eax], dl
mov eax, dword [esp + 0x10]
and eax, 0xff
jmp 0x495598
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
and eax, 0xff
push eax
call dword [edx + 4]
cmp eax, 0xffffffff
je 0x4952dd
mov esi, dword [esi + 0x38]
shr ebx, 0x18
mov ecx, dword [esi + 0x20]
mov byte [esp + 0x10], bl
mov eax, dword [ecx]
test eax, eax
je 0x4955da
mov ecx, dword [esi + 0x30]
mov edx, dword [ecx]
lea edi, [edx + eax]
cmp eax, edi
jae 0x4955da
dec edx
mov dword [ecx], edx
mov esi, dword [esi + 0x20]
mov eax, dword [esi]
lea edx, [eax + 1]
mov dword [esi], edx
mov byte [eax], bl
mov eax, dword [esp + 0x10]
and eax, 0xff
jmp 0x4955ec
mov ecx, dword [esp + 0x10]
mov eax, dword [esi]
and ecx, 0xff
push ecx
mov ecx, esi
call dword [eax + 4]
cmp eax, 0xffffffff
je 0x4952dd
mov ecx, dword [esp + 0x14]
call fcn.0064d2b0
test eax, eax
jne 0x4952dd
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret