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

Disassembly:
sub esp, 0x5c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x78]
lea ecx, [esp + 0x50]
push ecx
mov ebp, 1
lea eax, [esp + 0x18]
xor ebx, ebx
push esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], eax
call fcn.00494260
add esp, 8
test eax, eax
jne 0x494af3
pop esi
pop ebp
mov eax, 0xfffffff4
pop ebx
add esp, 0x5c
ret
push edi
mov edi, dword [esp + 0x78]
push esi
push edi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
call fcn.004941d0
add esp, 8
test eax, eax
jge 0x494bb4
mov esi, dword [esp + 0x70]
cmp esi, ebx
je 0x494b8e
push ebp
push esi
call fcn.00493d10
add esp, 8
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x494b84
mov ecx, dword [esi + 4]
mov edi, dword [esi + 8]
shl ecx, 2
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 8]
mov edi, dword [esp + 0x78]
mov dword [eax], ebx
mov eax, dword [esp + 0x18]
mov dword [esi], ebp
cmp eax, ebx
mov esi, eax
jne 0x495034
mov eax, dword [esp + 0x74]
cmp eax, ebx
je 0x494baa
push edi
push eax
call fcn.00493dc0
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x495034
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x5c
ret
lea ecx, [esp + 0x24]
push edi
push ecx
call fcn.00493dc0
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x495034
mov edx, dword [esp + 0x7c]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.00493dc0
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x495034
mov ecx, dword [edi + 4]
add ecx, 2
push ecx
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x2c], ebp
call fcn.00493d10
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x495034
lea eax, [esp + 0x48]
push ebp
push eax
call fcn.00493d10
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x495034
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
xor eax, eax
cmp esi, ebx
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [edx], ebx
mov dword [esp + 0x48], ebp
jne 0x495034
lea ecx, [esp + 0x3c]
push 2
push ecx
call fcn.00493d10
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x495034
lea edx, [esp + 0x54]
push 3
push edx
call fcn.00493d10
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x495034
lea eax, [esp + 0x30]
push eax
call fcn.00493e30
and eax, 0x1f
add esp, 4
cmp eax, 0x1f
jae 0x494cc6
mov edi, 0x1f
sub edi, eax
lea ecx, [esp + 0x24]
push edi
push ecx
mov dword [esp + 0x20], edi
call fcn.00493ff0
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x495034
lea edx, [esp + 0x30]
push edi
push edx
call fcn.00493ff0
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x495034
jmp 0x494cca
mov dword [esp + 0x18], ebx
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
dec ebp
dec eax
mov edi, ebp
sub edi, eax
mov ebx, edi
mov dword [esp + 0x10], eax
shl ebx, 5
lea eax, [esp + 0x30]
push ebx
push eax
call fcn.00493ff0
mov esi, eax
add esp, 8
test esi, esi
jne 0x495034
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00494260
add esp, 8
test eax, eax
jl 0x494d3f
nop
mov eax, dword [esp + 0x50]
inc dword [eax + edi*4]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x28]
push ecx
mov edx, ecx
push edx
call fcn.004945b0
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.00494260
add esp, 0x14
test eax, eax
jge 0x494d10
lea edx, [esp + 0x30]
push ebx
push edx
call fcn.004940d0
mov eax, dword [esp + 0x18]
add esp, 8
cmp ebp, eax
jbe 0x494fa6
lea eax, [edi + 0x7ffffff]
shl eax, 5
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x50]
lea ebx, [eax + edi*4 - 4]
mov edi, edi
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x10]
mov eax, dword [edi + ebp*4]
mov ecx, dword [ecx + edx*4]
cmp eax, ecx
jb 0x494d8e
mov dword [ebx], 0xffffffff
jmp 0x494dbd
mov esi, dword [edi + ebp*4 - 4]
xor edi, edi
push edi
push ecx
xor edx, edx
or eax, edi
or edx, esi
push eax
push edx
call 0x4a22e0
test edx, edx
ja 0x494dac
cmp eax, 0xffffffff
jbe 0x494db7
or eax, 0xffffffff
mov dword [esp + 0x20], 0
mov edi, dword [esp + 0x2c]
mov dword [ebx], eax
inc dword [ebx]
nop
dec dword [ebx]
lea eax, [esp + 0x3c]
push 1
push eax
call fcn.00493d10
mov edx, dword [esp + 0x4c]
mov esi, eax
add esp, 8
test esi, esi
jne 0x495034
mov ecx, dword [esp + 0x40]
xor eax, eax
test esi, esi
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x2c]
mov dword [edx], eax
mov dword [esp + 0x3c], 1
jne 0x495034
mov ecx, dword [esp + 0x10]
cmp ecx, 1
jb 0x494e10
mov eax, dword [esp + 0x38]
mov eax, dword [eax + ecx*4 - 4]
mov dword [edx], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + ecx*4]
mov dword [edx + 4], ecx
mov edx, dword [ebx]
push edx
lea eax, [esp + 0x40]
push eax
mov ecx, eax
push ecx
call fcn.00494a70
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x495034
lea edx, [esp + 0x54]
push 1
push edx
call fcn.00493d10
mov edx, dword [esp + 0x64]
mov esi, eax
add esp, 8
test esi, esi
jne 0x495034
mov ecx, dword [esp + 0x58]
xor eax, eax
test esi, esi
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x2c]
mov dword [edx], eax
mov dword [esp + 0x54], 1
jne 0x495034
cmp ebp, 2
jb 0x494e7f
mov eax, dword [edi + ebp*4 - 8]
cmp ebp, 1
mov dword [edx], eax
jae 0x494e8a
xor eax, eax
jmp 0x494e8e
mov eax, dword [edi + ebp*4 - 4]
mov dword [edx + 4], eax
mov eax, dword [edi + ebp*4]
lea ecx, [esp + 0x54]
mov dword [edx + 8], eax
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.00494260
add esp, 8
test eax, eax
jg 0x494dc0
mov eax, dword [ebx]
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.00494a70
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x495034
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x3c]
push edi
push eax
call fcn.00493ff0
mov esi, eax
add esp, 8
test esi, esi
jne 0x495034
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x28]
push edx
mov eax, edx
push eax
call fcn.004945b0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x495034
mov dword [esp + 0x14], eax
mov eax, 1
lea edx, [esp + 0x60]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
push edx
lea eax, [esp + 0x28]
lea ecx, [esp + 0x18]
push eax
mov dword [esp + 0x70], ecx
call fcn.00494260
add esp, 8
test eax, eax
jge 0x494f8f
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.00493dc0
mov esi, eax
add esp, 8
test esi, esi
jne 0x495034
lea eax, [esp + 0x3c]
push edi
push eax
call fcn.00493ff0
mov esi, eax
add esp, 8
test esi, esi
jne 0x495034
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x28]
push edx
mov eax, edx
push eax
call fcn.00494540
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x495034
dec dword [ebx]
mov eax, dword [esp + 0x10]
dec ebp
sub edi, 0x20
sub ebx, 4
cmp ebp, eax
mov dword [esp + 0x14], edi
ja 0x494d70
mov edi, dword [esp + 0x70]
test edi, edi
je 0x494fd1
lea ecx, [esp + 0x48]
push ecx
push edi
call fcn.00493dc0
mov edx, dword [esp + 0x80]
mov eax, dword [edx]
mov ecx, dword [esp + 0x84]
add esp, 8
imul eax, dword [ecx]
mov dword [edi], eax
mov edi, dword [esp + 0x74]
test edi, edi
je 0x495034
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.004940d0
mov ecx, dword [esp + 0x80]
mov edx, dword [ecx]
lea eax, [esp + 0x2c]
push eax
push edi
mov dword [esp + 0x34], edx
call fcn.00493dc0
lea edx, [esp + 0x70]
push edx
mov ebx, 1
lea ecx, [esp + 0x2c]
push edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ecx
call fcn.00494260
add esp, 0x18
test eax, eax
jne 0x495034
mov dword [edi], ebx
lea eax, [esp + 0x24]
push eax
call fcn.00493cc0
lea ecx, [esp + 0x34]
push ecx
call fcn.00493cc0
lea edx, [esp + 0x50]
push edx
call fcn.00493cc0
lea eax, [esp + 0x48]
push eax
call fcn.00493cc0
lea ecx, [esp + 0x64]
push ecx
call fcn.00493cc0
add esp, 0x14
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret