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

Disassembly:
sub esp, 0x3c
mov eax, dword [esp + 0x40]
mov edx, dword [eax + 0x6c]
push ebx
mov ebx, dword [esp + 0x48]
push ebp
push esi
mov esi, dword [eax + 8]
mov eax, dword [esp + 0x68]
push edi
mov edi, dword [eax + 4]
and edx, 4
mov dword [esp + 0x3c], edx
mov dword [esp + 0x50], edi
je 0x1005854b
lea eax, [ebx + 0x124]
mov dword [esp + 0x38], eax
lea ecx, [ebx + 0x180]
jmp 0x10058557
mov dword [esp + 0x38], ebx
lea ecx, [ebx + 0x160]
mov eax, ebx
mov ebx, dword [ebx + 0xec]
dec ebx
cmp ebx, 4
ja case.0x10058567.4
jmp dword [ebx*4 + 0x10058eec]
mov ebp, dword [eax + 4]
mov ebx, dword [eax]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x70]
push 0
push edx
mov edx, dword [esp + 0x60]
push esi
push ebp
shl ecx, 4
push ecx
mov ecx, dword [eax]
shl edx, 4
push edx
mov edx, dword [esp + 0x84]
mov eax, dword [edx]
push ecx
mov ecx, dword [esp + 0x84]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x84]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x84]
mov eax, dword [edx]
push ecx
mov ecx, dword [esp + 0xac]
push eax
push ecx
mov ecx, ebx
mov edx, edi
call fcn.10057ea0
add esp, 0x30
cmp dword [esp + 0x3c], 0
je 0x100585e4
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov ebx, eax
mov eax, ebp
cdq
sub eax, edx
sar eax, 1
mov ebp, eax
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
add edx, 0x200
shr esi, 1
push esi
push edx
push edi
push eax
mov edx, ebp
and edx, 3
mov eax, ebx
push ecx
mov ecx, dword [esp + 0x6c]
sar ebp, 1
add ebp, dword [edx*4 + 0x10081f58]
and eax, 3
sar ebx, 1
add ebx, dword [eax*4 + 0x10081f58]
mov eax, dword [esp + 0x70]
push ebp
push ebx
xor edx, edx
call fcn.10058090
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov ebp, dword [ecx + 4]
mov ebx, dword [ecx]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x80]
push 0
push edx
mov edx, dword [esp + 0x60]
push esi
push ebp
shl ecx, 4
push ecx
mov ecx, dword [eax]
shl edx, 4
push edx
mov edx, dword [esp + 0x94]
mov eax, dword [edx]
push ecx
mov ecx, dword [esp + 0x94]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x94]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x84]
mov eax, dword [edx]
push ecx
mov ecx, dword [esp + 0xac]
push eax
push ecx
mov ecx, ebx
mov edx, edi
call fcn.10057ea0
add esp, 0x30
cmp dword [esp + 0x3c], 0
je 0x100586b1
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov ebx, eax
mov eax, ebp
cdq
sub eax, edx
sar eax, 1
mov ebp, eax
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x60]
add edx, 0x200
shr esi, 1
push esi
push edx
push edi
push eax
mov edx, ebp
and edx, 3
mov eax, ebx
push ecx
mov ecx, dword [esp + 0x6c]
sar ebp, 1
add ebp, dword [edx*4 + 0x10081f58]
and eax, 3
sar ebx, 1
add ebx, dword [eax*4 + 0x10081f58]
mov eax, dword [esp + 0x70]
push ebp
push ebx
xor edx, edx
call fcn.10058090
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov ebx, dword [eax]
mov ebp, dword [ecx]
mov eax, dword [eax + 4]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x54], ebp
mov dword [esp + 0x10], ecx
test edx, edx
je 0x10058857
or eax, ebx
test al, 3
je 0x10058774
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
mov ebp, ecx
push 0
shl ebp, 4
push ebp
lea edx, [edi + 0x20]
push edx
mov edx, dword [esp + 0x70]
mov edx, dword [edx]
push edx
mov edx, esi
imul edx, eax
mov ebx, eax
add edx, ecx
mov ecx, dword [esp + 0x2c]
shl edx, 4
mov eax, edi
sub eax, edx
shl ebx, 4
push eax
mov eax, dword [esp + 0x28]
mov edx, ebx
call fcn.100578d0
add esp, 0x14
mov dword [esp + 0x18], edi
jmp 0x100587b1
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x58]
cdq
and edx, 3
add eax, edx
mov ecx, eax
mov eax, dword [esp + 0x1c]
sar ecx, 2
shl ebx, 4
add ecx, ebx
imul ecx, esi
cdq
and edx, 3
add eax, edx
mov edx, dword [esp + 0x64]
shl ebp, 4
sar eax, 2
add ecx, ebp
add eax, ecx
add eax, dword [edx]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x54]
mov edx, eax
or edx, ecx
test dl, 3
je 0x100587fe
push 0
push ebp
lea edx, [edi + 0x20]
push edx
mov edx, dword [esp + 0x80]
mov edx, dword [edx]
push edx
mov edx, esi
imul edx, dword [esp + 0x6c]
mov ebp, 1
sub ebp, edx
sub ebp, dword [esp + 0x68]
mov edx, ebx
shl ebp, 4
add ebp, edi
push ebp
call fcn.100578d0
mov ecx, dword [esp + 0x68]
add esp, 0x14
add edi, 0x10
jmp 0x10058823
cdq
and edx, 3
add eax, edx
mov edi, eax
sar edi, 2
add edi, ebx
imul edi, esi
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
add edi, eax
mov eax, dword [esp + 0x74]
add edi, dword [eax]
add edi, ebp
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x10]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x14], eax
jmp 0x100588cf
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x70]
mov ebp, dword [esp + 0x5c]
push esi
push ecx
mov ecx, dword [edx]
mov edx, dword [esp + 0x74]
push ecx
mov ecx, dword [edx]
mov edx, dword [esp + 0x74]
push ecx
mov ecx, dword [edx]
mov edx, dword [esp + 0x74]
push ecx
mov ecx, dword [edx]
push ecx
mov edi, 0x10
mov ecx, ebp
call fcn.10057df0
mov edx, dword [esp + 0x70]
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x98]
mov ecx, dword [eax]
push esi
push edx
mov edx, dword [esp + 0x9c]
mov eax, dword [edx]
push ecx
mov ecx, dword [esp + 0x9c]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x9c]
mov ecx, dword [eax]
mov eax, dword [esp + 0x38]
push edx
push ecx
mov ecx, ebp
call fcn.10057df0
add esp, 0x30
mov edi, eax
mov edx, dword [esp + 0x84]
xor ebx, ebx
mov dword [esp + 0x6c], edx
lea esp, [esp]
mov ecx, ebx
sar ecx, 1
mov eax, ecx
imul eax, esi
mov edx, ebx
and edx, 1
add eax, edx
add eax, eax
add eax, eax
add eax, eax
lea ebp, [eax + edi]
push esi
push ebp
mov ebp, dword [esp + 0x20]
add eax, ebp
mov ebp, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x68]
lea ecx, [ecx + eax*2]
mov eax, dword [esp + 0x64]
imul ecx, esi
add eax, eax
add ecx, eax
add ecx, edx
mov edx, dword [esp + 0x6c]
mov eax, dword [edx]
lea ecx, [eax + ecx*8]
push ecx
push ebp
call dword [0x10104aa8]
inc ebx
sub ebp, 0xffffff80
add esp, 0x14
cmp ebx, 4
mov dword [esp + 0x6c], ebp
jl 0x100588e0
mov ecx, dword [esp + 0x1c]
mov edx, ecx
and edx, 3
sar ecx, 1
add ecx, dword [edx*4 + 0x10081f58]
mov edx, dword [esp + 0x14]
mov eax, edx
and eax, 3
sar edx, 1
add edx, dword [eax*4 + 0x10081f58]
mov eax, dword [esp + 0x54]
mov edi, eax
and edi, 3
sar eax, 1
add eax, dword [edi*4 + 0x10081f58]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x10]
mov edi, eax
and edi, 3
sar eax, 1
add eax, dword [edi*4 + 0x10081f58]
jmp 0x10058ccd
mov ebx, dword [esp + 0x58]
add ebx, ebx
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x84]
xor edi, edi
mov dword [esp + 0x44], ebx
mov ebx, eax
lea ebp, [ecx + 4]
sub ebx, ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x40], ebp
mov dword [esp + 0x48], ebx
jmp 0x100589e0
mov eax, dword [esp + 0x38]
mov ebp, dword [esp + 0x40]
mov ebx, dword [esp + 0x48]
mov edx, dword [esp + 0x3c]
mov ecx, dword [eax + edi*8]
mov ebx, dword [ebx + ebp]
mov eax, dword [ebp - 4]
mov ebp, dword [ebp]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x54], eax
mov dword [esp + 0x10], ebp
test edx, edx
je 0x10058b88
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add dword [esp + 0x20], eax
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
add dword [esp + 0x24], eax
mov eax, dword [esp + 0x54]
cdq
sub eax, edx
sar eax, 1
add dword [esp + 0x28], eax
mov eax, ebp
cdq
sub eax, edx
sar eax, 1
add dword [esp + 0x2c], eax
or ebx, ecx
test bl, 3
je 0x10058aa2
mov eax, dword [esp + 0x5c]
mov edx, edi
sar edx, 1
lea ebp, [edx + eax*2]
mov edx, dword [esp + 0x1c]
and edi, 1
lea ebx, [edx + edi]
mov edx, dword [esp + 0x14]
push 0
push edx
mov edx, dword [esp + 0x58]
add edx, 0x20
add ebx, ebx
add ebx, ebx
add ebx, ebx
push ebx
push edx
mov edx, dword [esp + 0x74]
mov edx, dword [edx]
push edx
mov edx, ebp
imul edx, esi
add edx, dword [esp + 0x30]
mov dword [esp + 0x44], edi
add edx, edi
mov edi, dword [esp + 0x64]
add edx, edx
add edx, edx
add edx, edx
sub edi, edx
push edi
lea eax, [ebp*8]
mov edi, esi
call fcn.10057b90
mov edx, dword [esp + 0x68]
mov edi, dword [esp + 0x4c]
add esp, 0x18
mov dword [esp + 0x18], edx
jmp 0x10058afd
mov edx, dword [esp + 0x5c]
mov eax, edi
sar eax, 1
lea ebp, [eax + edx*2]
mov edx, dword [esp + 0x1c]
mov eax, edi
and eax, 1
lea ebx, [edx + eax]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov edx, eax
lea eax, [ebp*8]
add edx, eax
imul edx, esi
mov eax, ecx
mov ecx, edx
cdq
add ebx, ebx
and edx, 3
add ebx, ebx
add eax, edx
mov edx, dword [esp + 0x50]
add ebx, ebx
add ecx, ebx
sar eax, 2
add eax, ecx
mov ecx, dword [esp + 0x64]
add eax, dword [ecx]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
mov ecx, eax
or ecx, dword [esp + 0x54]
test cl, 3
je 0x10058b55
push 0
push eax
mov eax, dword [esp + 0x7c]
lea ecx, [edx + 0x10]
mov dword [esp + 0x24], ecx
push ebx
push ecx
mov ecx, dword [eax]
push ecx
mov ecx, dword [esp + 0x6c]
mov eax, ebp
imul eax, esi
neg ecx
add ecx, ecx
sub ecx, eax
sub ecx, dword [esp + 0x44]
mov edi, esi
lea edx, [edx + ecx*8 + 0x10]
mov ecx, dword [esp + 0x68]
push edx
lea eax, [ebp*8]
call fcn.10057b90
mov ecx, dword [esp + 0x34]
add esp, 0x18
jmp 0x10058c29
cdq
and edx, 3
add eax, edx
mov ecx, eax
sar ecx, 2
lea eax, [ebp*8]
add ecx, eax
mov eax, dword [esp + 0x54]
imul ecx, esi
cdq
and edx, 3
add eax, edx
sar eax, 2
add ecx, eax
mov eax, dword [esp + 0x74]
add ecx, dword [eax]
add ecx, ebx
jmp 0x10058c2d
add dword [esp + 0x28], eax
mov eax, dword [esp + 0x5c]
add dword [esp + 0x2c], ebp
add dword [esp + 0x20], ecx
add dword [esp + 0x24], ebx
mov edx, edi
sar edx, 1
lea ebp, [edx + eax*2]
mov edx, dword [esp + 0x1c]
and edi, 1
lea eax, [edx + edi]
push esi
push eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x78]
mov edx, dword [eax]
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [eax]
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [eax]
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [eax]
mov eax, ebx
mov ebx, ecx
mov dword [esp + 0x44], edi
push edx
mov edi, 8
mov ecx, ebp
call fcn.10057df0
mov ecx, dword [esp + 0x98]
mov edx, dword [ecx]
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x34]
push esi
push eax
mov eax, dword [esp + 0x9c]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x9c]
mov eax, dword [edx]
push ecx
mov ecx, dword [esp + 0x9c]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x3c]
push edx
mov ecx, ebp
call fcn.10057df0
add esp, 0x30
mov ecx, eax
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
imul ebp, esi
mov ebx, dword [esp + 0x44]
push esi
push ecx
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x64]
add eax, eax
add ebp, eax
add ebp, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
lea eax, [edx + ebp*8]
push eax
push ebx
call dword [0x10104aa8]
add dword [esp + 0x54], 8
inc edi
sub ebx, 0xffffff80
add esp, 0x14
cmp edi, 4
mov dword [esp + 0x34], edi
mov dword [esp + 0x44], ebx
jl 0x100589d0
mov eax, dword [esp + 0x20]
mov ecx, eax
sar eax, 3
and ecx, 0xf
add eax, dword [ecx*4 + 0x10081ef8]
mov ecx, eax
mov eax, dword [esp + 0x24]
mov edx, eax
sar eax, 3
and edx, 0xf
add eax, dword [edx*4 + 0x10081ef8]
mov edx, eax
mov eax, dword [esp + 0x28]
mov edi, eax
and edi, 0xf
sar eax, 3
add eax, dword [edi*4 + 0x10081ef8]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x2c]
mov edi, eax
and edi, 0xf
sar eax, 3
add eax, dword [edi*4 + 0x10081ef8]
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x64]
mov eax, edx
sar eax, 1
lea ebx, [eax + ebx*8]
mov eax, ecx
sar eax, 1
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x58]
add eax, eax
add eax, eax
add eax, eax
mov dword [esp + 0x6c], eax
mov edi, esi
shr edi, 1
mov eax, ebx
imul eax, edi
add eax, dword [ebp + 4]
and ecx, 1
add eax, dword [esp + 0x6c]
and edx, 1
add eax, dword [esp + 0x40]
lea ecx, [edx + ecx*2]
mov dword [esp + 0x48], ecx
sub ecx, 0
je 0x10058d5f
mov ebp, dword [esp + 0x50]
push 0
push edi
add ebp, 8
sub ecx, 1
push eax
push ebp
je 0x10058d50
sub ecx, 1
je 0x10058d41
call dword [0x10104ab4]
add esp, 0x10
mov dword [esp + 0x44], ebp
jmp 0x10058d63
call dword [0x10104ad8]
add esp, 0x10
mov dword [esp + 0x44], ebp
jmp 0x10058d63
call dword [0x10104af0]
add esp, 0x10
mov dword [esp + 0x44], ebp
jmp 0x10058d63
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x5c]
sar ecx, 1
lea ebp, [ecx + edx*8]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x74]
mov eax, ecx
sar eax, 1
mov dword [esp + 0x54], eax
mov eax, ebp
imul eax, edi
add eax, dword [edx + 4]
mov edx, dword [esp + 0x10]
add eax, dword [esp + 0x6c]
and ecx, 1
add eax, dword [esp + 0x54]
and edx, 1
lea ecx, [edx + ecx*2]
mov dword [esp + 0x3c], ecx
sub ecx, 0
je 0x10058de0
sub ecx, 1
push 0
push edi
push eax
je 0x10058dce
sub ecx, 1
je 0x10058dc1
mov eax, dword [esp + 0x5c]
push eax
call dword [0x10104ab4]
jmp 0x10058dd9
mov ecx, dword [esp + 0x5c]
push ecx
call dword [0x10104ad8]
jmp 0x10058dd9
mov edx, dword [esp + 0x5c]
push edx
call dword [0x10104af0]
mov eax, dword [esp + 0x60]
add esp, 0x10
imul esi, dword [esp + 0x5c]
mov edx, dword [esp + 0x44]
add esi, esi
push edi
push edx
add esi, esi
push eax
mov eax, dword [esp + 0x6c]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x90]
add esi, esi
mov ecx, esi
mov esi, dword [esp + 0x78]
shr ecx, 1
add ecx, esi
add edx, ecx
push edx
add eax, 0x200
push eax
mov dword [esp + 0x80], ecx
call dword [0x10104aa8]
imul ebx, edi
mov ecx, dword [esp + 0x78]
add ebx, dword [ecx + 8]
mov eax, dword [esp + 0x5c]
add ebx, esi
add ebx, dword [esp + 0x54]
add esp, 0x14
sub eax, 0
je 0x10058e6b
push 0
push edi
push ebx
mov ebx, dword [esp + 0x5c]
add ebx, 8
sub eax, 1
push ebx
je 0x10058e62
sub eax, 1
je 0x10058e5a
call dword [0x10104ab4]
jmp 0x10058e68
call dword [0x10104ad8]
jmp 0x10058e68
call dword [0x10104af0]
add esp, 0x10
mov edx, dword [esp + 0x74]
imul ebp, edi
add ebp, dword [edx + 8]
mov eax, dword [esp + 0x3c]
add ebp, esi
add ebp, dword [esp + 0x54]
sub eax, 0
je 0x10058ebe
sub eax, 1
push 0
push edi
push ebp
je 0x10058eac
sub eax, 1
je 0x10058e9f
mov eax, dword [esp + 0x5c]
push eax
call dword [0x10104ab4]
jmp 0x10058eb7
mov ecx, dword [esp + 0x5c]
push ecx
call dword [0x10104ad8]
jmp 0x10058eb7
mov edx, dword [esp + 0x5c]
push edx
call dword [0x10104af0]
mov ebp, dword [esp + 0x60]
add esp, 0x10
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 8]
add ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x84]
push edi
push ebx
push ebp
push ecx
add edx, 0x280
push edx
call dword [0x10104aa8]
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret