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

Disassembly:
sub esp, 0x1c
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
push ebx
mov ebx, dword [esp + 0x24]
add ecx, 1
push ebp
mov ebp, dword [esp + 0x38]
shl ebx, cl
shl eax, cl
shl edx, 4
mov dword [esp + 0x14], ecx
add ebx, dword [esp + 0x30]
add eax, dword [esp + 0x34]
shl ebp, 4
lea ecx, [edx + esi + 0x2018]
mov edx, dword [esp + 0x28]
cmp edx, dword [esi + 0x2000]
lea ebp, [esi + ebp + 0x2058]
push edi
mov edi, dword [esi + 0x2098]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x24], ecx
jl 0x49431e
mov edx, dword [esi + 0x2004]
mov ecx, dword [esp + 0x18]
shl edx, cl
cmp ebx, edx
jg 0x49431e
mov ecx, dword [esp + 0x30]
cmp ecx, dword [esi + 0x2008]
jl 0x49431e
mov ecx, dword [esp + 0x44]
mov edx, dword [esi + 0x200c]
add ecx, 1
shl edx, cl
cmp eax, edx
jle 0x494336
push 0x76
push 0x101a6a80
push 0x101a69d8
call 0x54e969
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [esi + 0x2000]
jl 0x4949bb
mov ecx, dword [esp + 0x44]
mov edx, dword [esi + 0x2004]
add ecx, 1
shl edx, cl
cmp ebx, edx
jg 0x4949bb
mov ecx, dword [esp + 0x30]
cmp ecx, dword [esi + 0x2008]
jl 0x4949bb
mov ecx, dword [esp + 0x44]
mov edx, dword [esi + 0x200c]
add ecx, 1
shl edx, cl
cmp eax, edx
jg 0x4949bb
cmp dword [esi + 0x1df8], 1
movzx ecx, word [esi + 0x2870]
movzx edx, word [esi + 0x2872]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x14], edx
lea edx, [ecx + ecx + 1]
mov dword [esp + 0x34], edx
jne 0x49458f
lea edx, [esi + 0x1f78]
mov dword [esp + 0x30], 0
mov dword [esp + 0x3c], edx
jmp 0x4943dc
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x10]
mov ecx, dword [edx + 0x20]
mov ebp, dword [edx + 0x24]
add ecx, ebx
add ebp, eax
test ebx, ebx
mov dword [esp + 0x18], ecx
je 0x4943f6
sub ecx, dword [edx]
mov dword [esp + 0x34], ecx
jmp 0x494424
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x14]
add ecx, 4
and ebx, 1
shl ebx, cl
mov ecx, dword [esp + 0x2c]
sub eax, ecx
imul eax, dword [edx]
cdq
idiv ecx
mov edx, dword [esp + 0x3c]
add ebx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], ebx
test eax, eax
je 0x494433
mov eax, dword [esp + 0x3c]
mov ebx, ebp
sub ebx, dword [eax + 4]
jmp 0x494457
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
sub eax, ecx
imul eax, dword [edx + 4]
cdq
idiv ecx
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x44]
sar edx, 1
add ecx, 4
shl edx, cl
mov ebx, eax
add ebx, edx
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x44]
add ecx, 1
lea edx, [edx + edx + 1]
mov eax, ebp
and eax, edx
shl eax, cl
mov ecx, dword [esp + 0x18]
and ecx, edx
add eax, ecx
mov ecx, ebx
and ecx, edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x44]
add ecx, 1
shl dword [esp + 0xc], cl
mov ecx, dword [esp + 0x44]
lea ecx, [ecx + ecx + 1]
and edx, ecx
mov ecx, dword [esp + 0xc]
add ecx, edx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x30]
mov edx, ecx
sar edx, 1
imul edx, edi
and ecx, 1
add edx, ecx
cmp dword [esp + 0x44], 0
mov ecx, dword [esi + 0x1fc8]
lea edx, [ecx + edx*8]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xc], edx
je 0x49451d
mov edx, dword [esi + 0x20b4]
mov edx, dword [edx + eax*4 + 0x40]
sar ebp, 2
imul ebp, edi
sar ecx, 2
add ebp, ecx
mov ecx, dword [esp + 0x38]
add ebp, dword [ecx]
mov ecx, dword [esp + 0xc]
push edi
push ebp
push ecx
call edx
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov ecx, dword [esi + 0x20b8]
sar ebx, 2
imul ebx, edi
sar eax, 2
add ebx, eax
add ebx, dword [edx + 0x20]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
push edi
push ebx
push eax
mov eax, dword [ecx + edx*4 + 0x40]
call eax
add esp, 0x18
jmp 0x494571
mov edx, dword [esi + 0x20ac]
mov edx, dword [edx + eax*4 + 0x10]
sar ebp, 1
imul ebp, edi
sar ecx, 1
add ebp, ecx
mov ecx, dword [esp + 0x38]
add ebp, dword [ecx]
mov ecx, dword [esp + 0xc]
push 8
push edi
push ebp
push ecx
call edx
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov ecx, dword [esi + 0x20b0]
sar ebx, 1
imul ebx, edi
sar eax, 1
add ebx, eax
add ebx, dword [edx + 0x20]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
push 8
push edi
push ebx
push eax
mov eax, dword [ecx + edx*4 + 0x10]
call eax
add esp, 0x20
mov eax, dword [esp + 0x30]
add dword [esp + 0x3c], 8
add eax, 1
cmp eax, 4
mov dword [esp + 0x30], eax
jl 0x4943d0
jmp 0x49499b
mov edx, dword [esi + 0x1f98]
mov ecx, dword [esi + 0x1f9c]
add edx, ebx
add ecx, eax
test ebx, ebx
mov dword [esp + 0x20], edx
mov dword [esp + 0x38], ecx
je 0x4945b7
sub edx, dword [esi + 0x1f78]
mov dword [esp + 0x30], edx
jmp 0x4945d3
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x2c]
imul eax, dword [esi + 0x1f78]
cdq
idiv dword [esp + 0x2c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4945e1
mov eax, ecx
sub eax, dword [esi + 0x1f7c]
jmp 0x4945f5
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x2c]
imul eax, dword [esi + 0x1f7c]
cdq
idiv dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
mov ebx, ecx
and ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x44]
add ecx, 1
shl ebx, cl
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x3c], eax
lea ecx, [ecx + ecx + 1]
mov eax, edx
and eax, ecx
add ebx, eax
mov eax, dword [esp + 0x3c]
and eax, ecx
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x18]
shl eax, cl
mov ecx, dword [esp + 0x30]
and ecx, dword [esp + 0x34]
add eax, ecx
cmp dword [esp + 0x44], 0
mov dword [esp + 0x2c], eax
je 0x4947cc
mov eax, dword [esp + 0x38]
sar eax, 2
mov dword [esp + 0x34], eax
imul eax, edi
mov ecx, edx
mov edx, dword [esi + 0x20b4]
mov edx, dword [edx + ebx*4 + 0x40]
sar ecx, 2
mov dword [esp + 0x38], ecx
add ecx, eax
mov eax, dword [ebp]
add eax, ecx
push edi
mov dword [esp + 0x48], ecx
mov ecx, dword [esi + 0x1fc8]
push eax
push ecx
call edx
mov ecx, dword [ebp]
mov edx, dword [esp + 0x50]
mov eax, dword [esi + 0x20b4]
mov eax, dword [eax + ebx*4 + 0x40]
lea ecx, [edx + ecx + 8]
mov edx, dword [esi + 0x1fc8]
push edi
push ecx
add edx, 8
push edx
call eax
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
add ecx, 8
imul ecx, edi
lea eax, [ecx + edx]
mov edx, dword [ebp]
mov ecx, dword [esi + 0x20b4]
add edx, eax
push edi
push edx
mov edx, dword [esi + 0x1fc8]
mov dword [esp + 0x64], eax
lea eax, [edi*8]
add edx, eax
mov eax, dword [ecx + ebx*4 + 0x40]
push edx
call eax
mov edx, dword [ebp]
mov eax, dword [esp + 0x68]
mov ecx, dword [esi + 0x20b4]
lea edx, [eax + edx + 8]
mov eax, dword [esi + 0x1fc8]
push edi
push edx
lea edx, [eax + edi*8 + 8]
mov eax, dword [ecx + ebx*4 + 0x40]
push edx
call eax
mov ebx, dword [esp + 0x6c]
mov eax, dword [esp + 0x60]
mov edx, dword [esi + 0x20b8]
sar ebx, 2
mov ecx, ebx
imul ecx, edi
sar eax, 2
mov dword [esp + 0x60], eax
add eax, ecx
mov ecx, dword [ebp + 0x20]
add ecx, eax
push edi
push ecx
mov ecx, dword [esp + 0x64]
mov edx, dword [edx + ecx*4 + 0x40]
mov dword [esp + 0x7c], eax
mov eax, dword [esi + 0x1fc8]
push eax
call edx
mov ecx, dword [ebp + 0x20]
mov edx, dword [esp + 0x80]
mov eax, dword [esi + 0x20b8]
push edi
lea ecx, [edx + ecx + 8]
mov edx, dword [esi + 0x1fc8]
push ecx
mov ecx, dword [esp + 0x70]
add edx, 8
push edx
mov edx, dword [eax + ecx*4 + 0x40]
call edx
mov eax, dword [esp + 0x78]
mov edx, dword [ebp + 0x20]
mov ecx, dword [esi + 0x20b8]
add ebx, 8
imul ebx, edi
add eax, ebx
add edx, eax
add esp, 0x48
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x1fc8]
push edi
push edx
mov edx, dword [esp + 0x34]
lea ebx, [edi*8]
add eax, ebx
push eax
mov eax, dword [ecx + edx*4 + 0x40]
call eax
mov edx, dword [ebp + 0x20]
mov eax, dword [esp + 0x50]
mov ecx, dword [esi + 0x20b8]
lea edx, [eax + edx + 8]
mov eax, dword [esi + 0x1fc8]
push edi
push edx
lea edx, [ebx + eax + 8]
mov eax, dword [esp + 0x40]
mov ecx, dword [ecx + eax*4 + 0x40]
push edx
call ecx
add esp, 0x18
jmp 0x49499b
mov eax, dword [esi + 0x20d0]
sar edx, 1
shl eax, 4
add eax, edx
cmp eax, 0xfffffff0
mov dword [esp + 0x34], edx
jge 0x4947fd
push 0xa0
push 0x101a6a80
push 0x101a699c
call 0x54e969
mov edx, dword [esp + 0x40]
add esp, 0xc
mov eax, dword [esp + 0x38]
mov ecx, dword [esi + 0x20d4]
sar eax, 1
shl ecx, 4
add ecx, eax
cmp ecx, 0xfffffff0
mov dword [esp + 0x44], eax
jge 0x494836
push 0xa1
push 0x101a6a80
push 0x101a6964
call 0x54e969
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x40]
add esp, 0xc
mov ecx, dword [esi + 0x20d0]
shl ecx, 4
add ecx, edx
cmp ecx, dword [esi + 4]
jle 0x494861
push 0xa2
push 0x101a6a80
push 0x101a6920
call 0x54e969
mov eax, dword [esp + 0x50]
add esp, 0xc
mov edx, dword [esi + 0x20d4]
shl edx, 4
add edx, eax
cmp edx, dword [esi + 8]
jle 0x49488c
push 0xa3
push 0x101a6a80
push 0x101a68d8
call 0x54e969
mov eax, dword [esp + 0x50]
add esp, 0xc
mov ecx, dword [esp + 0x30]
mov edx, dword [esi + 0x20d0]
sar ecx, 1
shl edx, 4
add edx, ecx
cmp edx, 0xfffffff0
mov dword [esp + 0x38], ecx
jge 0x4948c1
push 0xa4
push 0x101a6a80
push 0x101a689c
call 0x54e969
mov eax, dword [esp + 0x50]
add esp, 0xc
mov ecx, dword [esp + 0x3c]
mov edx, dword [esi + 0x20d4]
sar ecx, 1
shl edx, 4
add edx, ecx
cmp edx, 0xfffffff0
mov dword [esp + 0x30], ecx
jge 0x4948f6
push 0xa5
push 0x101a6a80
push 0x101a6864
call 0x54e969
mov eax, dword [esp + 0x50]
add esp, 0xc
mov ecx, dword [esi + 0x20d0]
shl ecx, 4
add ecx, dword [esp + 0x38]
cmp ecx, dword [esi + 4]
jle 0x494923
push 0xa6
push 0x101a6a80
push 0x101a6820
call 0x54e969
mov eax, dword [esp + 0x50]
add esp, 0xc
mov edx, dword [esi + 0x20d4]
shl edx, 4
add edx, dword [esp + 0x30]
cmp edx, dword [esi + 8]
jle 0x494950
push 0xa7
push 0x101a6a80
push 0x101a67d8
call 0x54e969
mov eax, dword [esp + 0x50]
add esp, 0xc
mov ecx, dword [esi + 0x20ac]
imul eax, edi
add eax, dword [esp + 0x34]
mov edx, dword [esi + 0x1fc8]
add eax, dword [ebp]
push 0x10
push edi
push eax
mov eax, dword [ecx + ebx*4]
push edx
call eax
mov eax, dword [esp + 0x40]
mov ecx, dword [esi + 0x20b0]
imul eax, edi
add eax, dword [ebp + 0x20]
mov edx, dword [esi + 0x1fc8]
add eax, dword [esp + 0x48]
push 0x10
push edi
push eax
mov eax, dword [esp + 0x48]
mov ecx, dword [ecx + eax*4]
push edx
call ecx
add esp, 0x20
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
mov ecx, dword [esi + 0x1fc8]
push 0x10
push edi
push eax
push ecx
push esi
call dword [esp + 0x54]
add esp, 0x14
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret
pop edi
pop ebp
mov eax, 0x20000000
pop ebx
add esp, 0x1c
ret