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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x3f4
mov eax, dword [0x10411ce0]
xor eax, esp
mov dword [esp + 0x3f0], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x80], ecx
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x58], edx
mov edx, dword [esi + 0x44]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x40], ecx
mov ecx, dword [ebx + 0x14]
mov dword [esp + 0x38], edx
mov edx, dword [ebx + 8]
push edi
mov edi, dword [esi + 8]
mov dword [esp + 0x7c], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x48], edx
mov edx, dword [esi + 0xc]
push edi
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x50], eax
call fcn.101285c0
mov dword [esp + 0x3c], eax
xor eax, eax
push 0x1a8
push eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], eax
lea eax, [esp + 0xa4]
push eax
call fcn.102dad40
mov eax, dword [ebx + 0x64]
mov edx, dword [esi + 0x20]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x13c], eax
mov eax, dword [ebx + 0x6c]
mov dword [esp + 0x17c], edx
not eax
lea edx, [esp + 0x250]
and eax, 1
mov dword [esp + 0x178], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x1fc], edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x204], eax
mov eax, dword [edx + 4]
and ecx, 0x1000
shr edi, 2
mov dword [esp + 0x16c], eax
mov eax, dword [0x10506d1c]
and edi, 1
mov dword [esp + 0x188], ecx
mov ecx, dword [ebx + 0x78]
add esp, 0x10
mov dword [esp + 0x170], edi
mov dword [esp + 0x204], ecx
test eax, eax
je 0x10128870
call eax
mov edi, dword [esp + 0x6c]
xor eax, eax
mov dword [esp + 0x30], 0
cmp edi, eax
jbe 0x10128c20
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x48]
shl eax, 4
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x4c]
imul eax, eax, 0x1e8
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x50]
xor edx, edx
div edi
mov ecx, dword [ebp + 0x28]
xor edx, edx
mov dword [esp + 0x2c], 0
imul eax, edi
lea eax, [eax + ecx - 1]
div ecx
mov edx, dword [esp + 0x4c]
imul eax, edx
mov dword [esp + 0x40], eax
test edx, edx
jbe 0x10128c00
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x58]
mov eax, ecx
add ecx, dword [esp + 0x80]
mov dword [esp + 0x54], edx
mov dword [esp + 0x64], ecx
jmp 0x1012890b
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x3c]
lea edi, [eax + ecx]
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx + 0x44]
add ecx, eax
add eax, 0x1e8
mov dword [esp + 0x94], eax
lea eax, [edi + 0x144]
push eax
mov eax, dword [ebx + 8]
push eax
mov eax, dword [esp + 0x30]
add eax, 0x38
mov dword [esp + 0x80], ecx
mov ecx, dword [eax]
mov eax, dword [esi + 0x38]
add ecx, edx
push ecx
add eax, edx
push eax
call dword [0x10506d18]
mov ecx, dword [edi + 0x148]
mov dword [edi + 0x154], eax
mov eax, dword [edi + 0x144]
add esp, 0x10
cmp eax, ecx
mov dword [esp + 0x34], eax
jg 0x10128972
mov dword [esp + 0x34], ecx
mov ecx, dword [edi + 0x14c]
mov edx, dword [edi + 0x150]
cmp ecx, edx
jg 0x10128984
mov ecx, edx
cmp dword [esp + 0x34], ecx
jle 0x10128992
mov ecx, dword [edi + 0x148]
jmp 0x1012899a
mov eax, dword [edi + 0x14c]
mov ecx, edx
cmp eax, ecx
jg 0x101289a0
mov eax, ecx
cmp dword [esp + 0x178], 0
lea ecx, [eax*4]
mov dword [esp + 0x34], ecx
je 0x10128a41
mov eax, dword [esp + 0x48]
shr eax, 1
mov ebx, eax
imul ebx, dword [esp + 0x30]
add ebx, dword [esp + 0x2c]
push eax
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 0x40]
add ebx, ebx
add eax, 0x38
mov eax, dword [esi + 0x40]
add ebx, ebx
add ebx, ebx
add edx, ebx
push edx
add eax, ebx
push eax
call dword [0x10506d30]
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x34]
mov edx, dword [eax + 0x3c]
add eax, 0x38
mov eax, dword [esi + 0x3c]
push ecx
add edx, ebx
push edx
add eax, ebx
push eax
call dword [0x10506d30]
mov ecx, dword [esp + 0xa8]
mov ebx, dword [esp + 0xa0]
add ecx, eax
mov dword [esp + 0x140], ecx
add dword [edi + 0x154], ecx
mov ecx, dword [esp + 0x140]
add esp, 0x18
add dword [esp + 0x34], ecx
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x44]
push edx
push eax
mov eax, dword [esp + 0x30]
add eax, 0x38
push eax
lea eax, [esi + 0x38]
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0xac]
push edx
mov edx, dword [esp + 0x90]
push eax
mov eax, dword [esp + 0x50]
push ecx
push edx
push esi
push ebx
push eax
call fcn.10128160
add esp, 0x30
test eax, eax
jne 0x10128be1
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 0x44]
push ecx
mov ecx, dword [esp + 0x40]
push edi
push edx
push ecx
mov ecx, dword [esi + 0xc]
push ebx
lea edx, [esp + 0xac]
push edx
mov edx, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x4c]
push ecx
push edx
lea ecx, [esi + 0x38]
push ecx
mov ecx, dword [esp + 0xa8]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x88]
push edx
mov edx, dword [ecx]
mov ecx, dword [esp + 0xb4]
push edx
mov edx, dword [ecx]
push edx
add eax, 0x38
push eax
call fcn.10127870
mov eax, dword [esi + 0xc]
add esp, 0x3c
test eax, 0x100
je 0x10128b3e
mov ecx, dword [esp + 0x40]
mov edx, dword [esi + 0x14]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esi + 8]
push ecx
mov ecx, dword [esp + 0x34]
add ecx, 0x38
push ecx
lea ecx, [esi + 0x38]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x5c]
push ebx
push ecx
push edx
push eax
lea ecx, [esp + 0xc8]
push edi
push ecx
call fcn.1012fb20
add esp, 0x38
jmp 0x10128bc1
test eax, 0x1000
je 0x10128b8c
mov edx, dword [esp + 0x40]
mov ecx, dword [esi + 0x14]
push edx
mov edx, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x44]
add ecx, 0x38
push ecx
lea ecx, [esi + 0x38]
push ecx
mov ecx, dword [esi + 8]
push ecx
mov ecx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x5c]
push ebx
push eax
push ecx
push edx
lea eax, [esp + 0xc8]
push edi
push eax
call fcn.1012ff80
add esp, 0x38
jmp 0x10128bc1
mov ecx, dword [esp + 0x34]
mov edx, dword [esi + 0x14]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x34]
add ecx, 0x38
push ecx
lea ecx, [esi + 0x38]
push ecx
push eax
mov eax, dword [esp + 0x44]
push ebx
push edx
push eax
lea ecx, [esp + 0xbc]
call fcn.10126f80
add esp, 0x24
mov ecx, dword [esp + 0x170]
push ecx
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0x68]
push eax
mov edx, edi
lea eax, [esp + 0x74]
call fcn.10128660
add esp, 0xc
mov eax, dword [esp + 0x2c]
add dword [esp + 0x54], 0x10
inc eax
mov dword [esp + 0x2c], eax
cmp eax, dword [esp + 0x4c]
jb 0x10128900
mov ecx, dword [ebp + 0x28]
mov edi, dword [esp + 0x6c]
mov eax, dword [esp + 0x30]
add dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x8c]
add dword [esp + 0x58], ecx
inc eax
mov dword [esp + 0x30], eax
cmp eax, edi
jb 0x101288b1
mov edx, dword [esp + 0x60]
push edx
call fcn.101219f0
mov ecx, dword [esp + 0x74]
add esp, 4
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x68]
mov dword [esi + 0x124], ecx
mov ecx, dword [esp + 0x3fc]
pop edi
mov dword [esi + 0x120], eax
pop esi
pop ebx
xor ecx, esp
call fcn.102d6d23
mov esp, ebp
pop ebp
ret