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

Disassembly:
sub esp, 0x34
mov eax, dword [esp + 0x38]
push ebx
push ebp
mov ebp, dword [eax + 0x6c]
push esi
mov esi, dword [eax + 8]
mov eax, dword [esp + 0x48]
and ebp, 4
push edi
mov dword [esp + 0x3c], ebp
je 0x10125ef0
lea ecx, [eax + 0x124]
mov dword [esp + 0x30], ecx
lea edx, [eax + 0x1b4]
jmp 0x10125efc
mov dword [esp + 0x30], eax
lea edx, [eax + 0x194]
mov ecx, eax
mov eax, dword [eax + 0xec]
dec eax
cmp eax, 4
ja case.0x10125f0c.4
jmp dword [eax*4 + 0x101268a4]
mov ebx, dword [ecx + 4]
mov edi, dword [ecx]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x68]
push 0
push ebp
push esi
push ebx
shl eax, 4
push eax
mov eax, dword [edx]
shl ecx, 4
push ecx
mov ecx, dword [esp + 0x7c]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x7c]
mov eax, dword [edx]
push ecx
mov ecx, dword [esp + 0x7c]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0xa4]
push edx
mov edx, dword [esp + 0xac]
push eax
mov ecx, edi
call fcn.10125850
add esp, 0x30
test ebp, ebp
je 0x10125f7f
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov edi, eax
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov ebx, eax
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x5c]
shr esi, 1
push esi
add ecx, 0x200
push ecx
mov ecx, dword [esp + 0x60]
push edx
push eax
mov edx, ebx
mov eax, edi
and edx, 3
sar ebx, 1
add ebx, dword [edx*4 + 0x1033c428]
and eax, 3
sar edi, 1
add edi, dword [eax*4 + 0x1033c428]
push ecx
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
push ebx
push edi
xor edx, edx
call fcn.10125a40
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov ebx, dword [edx + 4]
mov edi, dword [edx]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x78]
push 0
push ebp
push esi
push ebx
shl ecx, 4
push ecx
mov ecx, dword [eax]
shl edx, 4
push edx
mov edx, dword [esp + 0x8c]
mov eax, dword [edx]
push ecx
mov ecx, dword [esp + 0x8c]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x8c]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x7c]
mov eax, dword [edx]
mov edx, dword [esp + 0xa4]
push ecx
mov ecx, dword [esp + 0xa4]
push eax
push ecx
mov ecx, edi
call fcn.10125850
add esp, 0x30
test ebp, ebp
je 0x1012604c
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov edi, eax
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov ebx, eax
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x6c]
shr esi, 1
push esi
add edx, 0x200
push edx
mov edx, dword [esp + 0x60]
push eax
push ecx
mov eax, ebx
mov ecx, edi
and eax, 3
sar ebx, 1
add ebx, dword [eax*4 + 0x1033c428]
and ecx, 3
sar edi, 1
add edi, dword [ecx*4 + 0x1033c428]
push edx
jmp 0x10125fbb
mov edi, dword [ecx]
mov eax, dword [ecx + 4]
mov ecx, dword [edx]
mov dword [esp + 0x4c], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x48], ecx
test ebp, ebp
je 0x101261f2
mov edx, eax
or edx, edi
test dl, 3
je 0x10126108
mov ebp, dword [esp + 0x50]
mov edi, dword [esp + 0x80]
mov ecx, dword [esp + 0x54]
push 0
mov edx, ebp
shl edx, 4
push edx
mov dword [esp + 0x34], edx
lea edx, [edi + 0x20]
push edx
mov edx, dword [esp + 0x68]
mov edx, dword [edx]
push edx
mov edx, esi
imul edx, ecx
mov ebx, ecx
add edx, ebp
shl edx, 4
mov ecx, edi
sub ecx, edx
shl ebx, 4
push ecx
mov ecx, dword [esp + 0x2c]
mov edx, ebx
call fcn.101254e0
mov ecx, dword [esp + 0x5c]
add esp, 0x14
mov ebp, edi
jmp 0x10126148
mov ebx, dword [esp + 0x54]
mov edi, dword [esp + 0x50]
cdq
and edx, 3
add eax, edx
mov ebp, eax
mov eax, dword [esp + 0x18]
sar ebp, 2
shl ebx, 4
add ebp, ebx
imul ebp, esi
cdq
and edx, 3
add eax, edx
mov edx, dword [esp + 0x5c]
sar eax, 2
add ebp, eax
add ebp, dword [edx]
shl edi, 4
mov dword [esp + 0x2c], edi
add ebp, edi
mov edi, dword [esp + 0x80]
mov eax, ecx
or eax, dword [esp + 0x4c]
test al, 3
je 0x10126191
mov edx, dword [esp + 0x2c]
push 0
push edx
mov edx, dword [esp + 0x74]
lea eax, [edi + 0x20]
push eax
mov eax, dword [edx]
mov edx, esi
imul edx, dword [esp + 0x60]
push eax
mov eax, 1
sub eax, edx
sub eax, dword [esp + 0x60]
mov edx, ebx
shl eax, 4
add eax, edi
push eax
mov eax, ecx
mov ecx, dword [esp + 0x60]
call fcn.101254e0
add esp, 0x14
add edi, 0x10
jmp 0x101261bc
mov eax, ecx
mov ecx, dword [esp + 0x6c]
cdq
and edx, 3
add eax, edx
mov edi, eax
mov eax, dword [esp + 0x4c]
sar edi, 2
add edi, ebx
imul edi, esi
cdq
and edx, 3
add eax, edx
sar eax, 2
add edi, eax
add edi, dword [ecx]
add edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x4c]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x48]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x18]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x10], eax
jmp 0x1012626a
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x68]
push esi
push edx
mov edx, dword [ecx]
mov ecx, dword [esp + 0x6c]
push edx
mov edx, dword [ecx]
mov ecx, dword [esp + 0x6c]
push edx
mov edx, dword [ecx]
mov ecx, dword [esp + 0x6c]
push edx
mov edx, dword [ecx]
mov ecx, dword [esp + 0x68]
mov ebx, edi
push edx
mov edi, 0x10
call fcn.101257a0
mov ecx, dword [esp + 0x90]
mov edx, dword [ecx]
mov ebx, dword [esp + 0x64]
mov ebp, eax
mov eax, dword [esp + 0x68]
push esi
push eax
mov eax, dword [esp + 0x94]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x94]
mov eax, dword [edx]
push ecx
mov ecx, dword [esp + 0x94]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x7c]
push eax
mov eax, dword [esp + 0x74]
push edx
call fcn.101257a0
add esp, 0x30
mov edi, eax
mov eax, dword [esp + 0x7c]
xor ebx, ebx
mov dword [esp + 0x2c], eax
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
mov dword [esp + 0x14], edx
lea edx, [eax + edi]
push esi
push edx
mov edx, dword [esp + 0x60]
add eax, ebp
push eax
mov eax, dword [esp + 0x60]
lea ecx, [ecx + eax*2]
mov eax, dword [esp + 0x5c]
imul ecx, esi
add eax, eax
add ecx, eax
add ecx, dword [esp + 0x20]
mov eax, dword [edx]
mov edx, dword [esp + 0x38]
lea ecx, [eax + ecx*8]
push ecx
push edx
call dword [0x10506c08]
sub dword [esp + 0x40], 0xffffff80
inc ebx
add esp, 0x14
cmp ebx, 4
jl 0x10126274
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov eax, ecx
and eax, 3
sar ecx, 1
add ecx, dword [eax*4 + 0x1033c428]
mov eax, edx
and eax, 3
sar edx, 1
add edx, dword [eax*4 + 0x1033c428]
mov eax, dword [esp + 0x4c]
mov edi, eax
and edi, 3
sar eax, 1
add eax, dword [edi*4 + 0x1033c428]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x48]
mov edi, eax
and edi, 3
sar eax, 1
add eax, dword [edi*4 + 0x1033c428]
jmp 0x1012666a
mov eax, dword [esp + 0x50]
add eax, eax
xor edi, edi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x7c]
mov ebx, ecx
mov dword [esp + 0x38], eax
lea eax, [edx + 4]
sub ebx, edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], ebx
jmp 0x10126370
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x40]
mov ebx, dword [ebx + eax]
mov edx, dword [eax - 4]
mov eax, dword [eax]
mov ecx, dword [ecx + edi*8]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x48], eax
test ebp, ebp
je 0x10126525
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add dword [esp + 0x1c], eax
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
add dword [esp + 0x20], eax
mov eax, dword [esp + 0x4c]
cdq
sub eax, edx
sar eax, 1
add dword [esp + 0x24], eax
mov eax, dword [esp + 0x48]
cdq
sub eax, edx
sar eax, 1
add dword [esp + 0x28], eax
or ebx, ecx
test bl, 3
je 0x1012643c
mov eax, dword [esp + 0x54]
mov edx, edi
sar edx, 1
lea ebp, [edx + eax*2]
mov edx, dword [esp + 0x18]
and edi, 1
lea ebx, [edx + edi]
mov edx, dword [esp + 0x10]
push 0
push edx
mov edx, dword [esp + 0x88]
add edx, 0x20
add ebx, ebx
add ebx, ebx
add ebx, ebx
push ebx
push edx
mov edx, dword [esp + 0x6c]
mov edx, dword [edx]
push edx
mov edx, ebp
imul edx, esi
add edx, dword [esp + 0x2c]
mov dword [esp + 0x28], edi
add edx, edi
mov edi, dword [esp + 0x94]
add edx, edx
add edx, edx
add edx, edx
sub edi, edx
push edi
lea eax, [ebp*8]
mov edi, esi
call fcn.101168d0
mov edx, dword [esp + 0x98]
mov edi, dword [esp + 0x44]
add esp, 0x18
mov dword [esp + 0x18], edx
jmp 0x1012649a
mov edx, dword [esp + 0x54]
mov eax, edi
sar eax, 1
lea ebp, [eax + edx*2]
mov edx, dword [esp + 0x18]
mov eax, edi
and eax, 1
lea ebx, [edx + eax]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
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 + 0x80]
add ebx, ebx
add ecx, ebx
sar eax, 2
add eax, ecx
mov ecx, dword [esp + 0x5c]
add eax, dword [ecx]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x48]
mov ecx, eax
or ecx, dword [esp + 0x4c]
test cl, 3
je 0x101264f2
push 0
push eax
mov eax, dword [esp + 0x74]
lea ecx, [edx + 0x10]
mov dword [esp + 0x50], ecx
push ebx
push ecx
mov ecx, dword [eax]
push ecx
mov ecx, dword [esp + 0x64]
mov eax, ebp
imul eax, esi
neg ecx
add ecx, ecx
sub ecx, eax
sub ecx, dword [esp + 0x28]
mov edi, esi
lea edx, [edx + ecx*8 + 0x10]
mov ecx, dword [esp + 0x60]
push edx
lea eax, [ebp*8]
call fcn.101168d0
mov ecx, dword [esp + 0x60]
add esp, 0x18
jmp 0x101265c6
cdq
and edx, 3
add eax, edx
mov ecx, eax
sar ecx, 2
lea eax, [ebp*8]
add ecx, eax
mov eax, dword [esp + 0x4c]
imul ecx, esi
cdq
and edx, 3
add eax, edx
sar eax, 2
add ecx, eax
mov eax, dword [esp + 0x6c]
add ecx, dword [eax]
add ecx, ebx
jmp 0x101265ca
add dword [esp + 0x24], edx
add dword [esp + 0x28], eax
mov eax, dword [esp + 0x54]
add dword [esp + 0x1c], ecx
add dword [esp + 0x20], ebx
mov edx, edi
sar edx, 1
lea ebp, [edx + eax*2]
mov edx, dword [esp + 0x18]
and edi, 1
lea eax, [edx + edi]
push esi
push eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x70]
mov edx, dword [eax]
mov eax, dword [esp + 0x6c]
push edx
mov edx, dword [eax]
mov eax, dword [esp + 0x6c]
push edx
mov edx, dword [eax]
mov eax, dword [esp + 0x6c]
push edx
mov edx, dword [eax]
mov eax, ebx
mov ebx, ecx
mov dword [esp + 0x28], edi
push edx
mov edi, 8
mov ecx, ebp
call fcn.101257a0
mov ecx, dword [esp + 0x90]
mov edx, dword [ecx]
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x28]
push esi
push eax
mov eax, dword [esp + 0x94]
mov ecx, dword [eax]
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 + 0x74]
push edx
mov ecx, ebp
call fcn.101257a0
add esp, 0x30
mov ecx, eax
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
imul ebp, esi
mov ebx, dword [esp + 0x38]
push esi
push ecx
mov ecx, dword [esp + 0x60]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x5c]
add eax, eax
add ebp, eax
add ebp, dword [esp + 0x20]
mov dword [esp + 0x24], eax
lea eax, [edx + ebp*8]
push eax
push ebx
call dword [0x10506c08]
add dword [esp + 0x48], 8
inc edi
sub ebx, 0xffffff80
add esp, 0x14
cmp edi, 4
mov dword [esp + 0x2c], edi
mov dword [esp + 0x38], ebx
jl 0x10126360
mov eax, dword [esp + 0x1c]
mov ecx, eax
sar eax, 3
and ecx, 0xf
add eax, dword [ecx*4 + 0x1033c3c8]
mov ecx, eax
mov eax, dword [esp + 0x20]
mov edx, eax
sar eax, 3
and edx, 0xf
add eax, dword [edx*4 + 0x1033c3c8]
mov edx, eax
mov eax, dword [esp + 0x24]
mov edi, eax
and edi, 0xf
sar eax, 3
add eax, dword [edi*4 + 0x1033c3c8]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x28]
mov edi, eax
and edi, 0xf
sar eax, 3
add eax, dword [edi*4 + 0x1033c3c8]
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x48], eax
mov eax, edx
sar eax, 1
lea ebp, [eax + ebx*8]
mov ebx, dword [esp + 0x5c]
mov eax, ecx
sar eax, 1
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x50]
add eax, eax
add eax, eax
add eax, eax
mov dword [esp + 0x34], eax
mov edi, esi
shr edi, 1
mov eax, ebp
imul eax, edi
add eax, dword [ebx + 4]
and ecx, 1
add eax, dword [esp + 0x34]
and edx, 1
add eax, dword [esp + 0x30]
lea ecx, [edx + ecx*2]
mov dword [esp + 0x40], ecx
sub ecx, 0
je 0x101266ff
mov ebx, dword [esp + 0x80]
push 0
push edi
add ebx, 8
sub ecx, 1
push eax
push ebx
je 0x101266f0
sub ecx, 1
je 0x101266e1
call dword [0x10506c14]
add esp, 0x10
mov dword [esp + 0x38], ebx
jmp 0x10126703
call dword [0x10506c38]
add esp, 0x10
mov dword [esp + 0x38], ebx
jmp 0x10126703
call dword [0x10506c50]
add esp, 0x10
mov dword [esp + 0x38], ebx
jmp 0x10126703
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x54]
sar ecx, 1
lea ebx, [ecx + edx*8]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x6c]
mov eax, ecx
sar eax, 1
mov dword [esp + 0x4c], eax
mov eax, ebx
imul eax, edi
add eax, dword [edx + 4]
mov edx, dword [esp + 0x48]
add eax, dword [esp + 0x34]
and ecx, 1
add eax, dword [esp + 0x4c]
and edx, 1
lea ecx, [edx + ecx*2]
mov dword [esp + 0x48], ecx
sub ecx, 0
je 0x1012678c
sub ecx, 1
push 0
push edi
push eax
je 0x10126774
sub ecx, 1
je 0x10126764
mov eax, dword [esp + 0x8c]
push eax
call dword [0x10506c14]
jmp 0x10126782
mov ecx, dword [esp + 0x8c]
push ecx
call dword [0x10506c38]
jmp 0x10126782
mov edx, dword [esp + 0x8c]
push edx
call dword [0x10506c50]
mov eax, dword [esp + 0x90]
add esp, 0x10
imul esi, dword [esp + 0x54]
mov edx, dword [esp + 0x38]
add esi, esi
push edi
push edx
add esi, esi
push eax
mov eax, dword [esp + 0x64]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x88]
add esi, esi
mov ecx, esi
mov esi, dword [esp + 0x40]
shr ecx, 1
add ecx, esi
add edx, ecx
push edx
add eax, 0x200
push eax
mov dword [esp + 0x50], ecx
call dword [0x10506c08]
imul ebp, edi
mov ecx, dword [esp + 0x70]
add ebp, dword [ecx + 8]
mov eax, dword [esp + 0x54]
add ebp, esi
add ebp, dword [esp + 0x44]
add esp, 0x14
sub eax, 0
je 0x10126817
push 0
push edi
push ebp
mov ebp, dword [esp + 0x8c]
add ebp, 8
sub eax, 1
push ebp
je 0x1012680e
sub eax, 1
je 0x10126806
call dword [0x10506c14]
jmp 0x10126814
call dword [0x10506c38]
jmp 0x10126814
call dword [0x10506c50]
add esp, 0x10
mov edx, dword [esp + 0x6c]
imul ebx, edi
add ebx, dword [edx + 8]
mov eax, dword [esp + 0x48]
add ebx, esi
add ebx, dword [esp + 0x4c]
sub eax, 0
je 0x10126876
sub eax, 1
push 0
push edi
push ebx
je 0x1012685e
sub eax, 1
je 0x1012684e
mov eax, dword [esp + 0x8c]
push eax
call dword [0x10506c14]
jmp 0x1012686c
mov ecx, dword [esp + 0x8c]
push ecx
call dword [0x10506c38]
jmp 0x1012686c
mov edx, dword [esp + 0x8c]
push edx
call dword [0x10506c50]
mov ebx, dword [esp + 0x90]
add esp, 0x10
mov eax, dword [esp + 0x58]
mov ecx, dword [eax + 8]
add ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x7c]
push edi
push ebp
push ebx
push ecx
add edx, 0x280
push edx
call dword [0x10506c08]
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret