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

Disassembly:
sub esp, 0x4c
push ebx
push ebp
mov ebp, dword [esp + 0x58]
push esi
push edi
push dword [esp + 0x74]
mov esi, dword [ebp + 0x198]
push dword [ebp + 0x64]
push dword [esp + 0x6c]
call fcn.101184a8
mov ecx, dword [ebp + 0x60]
mov edx, eax
mov eax, dword [ebp + 0x1a0]
add esp, 0xc
mov ebx, dword [ebp + 8]
dec ecx
and dword [esp + 0x30], 0
and dword [esp + 0x34], 0
mov dword [esp + 0x24], eax
xor eax, eax
inc eax
mov dword [esp + 0x44], ebx
shl eax, cl
mov ecx, dword [ebp + 0xc]
dec eax
add ebx, ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 4]
mov edi, dword [esi + edx*4]
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x64]
sub ebx, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
add ecx, eax
mov eax, ebx
mov dword [esp + 0x48], ecx
sub eax, dword [esp + 0x14]
cmp dword [esp + 0x14], ebx
mov dword [esp + 0x20], ebx
sbb ecx, ecx
and ecx, eax
mov eax, dword [ebp + 0x10]
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x40], eax
mov eax, ebx
and eax, dword [esp + 0x14]
and dword [esp + 0x1c], 0
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x24]
mov dword [esi + edx*4], ebp
lea eax, [ecx + eax*8]
lea ebx, [eax + 4]
mov dword [esp + 0x10], eax
lea ecx, [ebp + 8]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x54], ecx
mov ebx, ecx
jmp 0x10127056
dec edx
mov dword [esp + 0x70], edx
cmp edi, dword [esp + 0x40]
jbe 0x10127076
mov edx, dword [esp + 0x24]
mov eax, edi
and eax, dword [esp + 0x14]
lea eax, [edx + eax*8]
mov edx, dword [esp + 0x34]
cmp dword [esp + 0x30], edx
mov esi, edx
mov dword [esp + 0x3c], eax
cmovb esi, dword [esp + 0x30]
cmp dword [esp + 0x78], 0
je 0x10126f81
lea eax, [esi + edi]
cmp eax, dword [esp + 0x28]
jae 0x10126f81
push dword [esp + 0x48]
mov ebp, dword [esp + 0x48]
push dword [esp + 0x50]
add ebp, edi
push dword [esp + 0x70]
lea eax, [esi + ebp]
push eax
lea eax, [esi + ecx]
push eax
call fcn.1013ae10
mov ecx, dword [esp + 0x78]
add esi, eax
add esp, 0x14
lea eax, [esi + edi]
cmp eax, dword [esp + 0x28]
jb 0x10126fae
mov ebp, dword [esp + 0x2c]
add ebp, edi
jmp 0x10126fae
mov ebp, dword [esp + 0x2c]
add ebp, edi
mov al, byte [esi + ebp]
cmp al, byte [esi + ecx]
jne 0x10126fae
push dword [esp + 0x68]
lea eax, [esi + 1]
add eax, ebp
push eax
lea eax, [esi + 1]
add eax, ecx
push eax
call fcn.1019c040
mov ecx, dword [esp + 0x70]
inc esi
add esp, 0xc
add esi, eax
cmp esi, dword [esp + 0x1c]
jbe 0x10127011
mov eax, ebx
lea ecx, [esi + edi]
sub eax, edi
cmp esi, eax
mov eax, dword [esp + 0x20]
cmovbe ecx, ebx
and dword [esp + 0x50], 0
and dword [esp + 0x58], 0
sub eax, edi
mov dword [esp + 0x50], eax
mov ebx, ecx
inc eax
bsr edx, eax
mov eax, dword [esp + 0x6c]
mov eax, dword [eax]
inc eax
bsr ecx, eax
mov eax, esi
sub eax, dword [esp + 0x1c]
sub edx, ecx
shl eax, 2
cmp eax, edx
jle 0x10127004
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x50]
add eax, 2
mov dword [esp + 0x1c], esi
mov dword [ecx], eax
mov ecx, dword [esp + 0x64]
lea eax, [esi + ecx]
cmp eax, dword [esp + 0x68]
je 0x10127076
mov al, byte [esi + ebp]
cmp al, byte [esi + ecx]
jae 0x10127038
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], esi
mov dword [eax], edi
cmp edi, dword [esp + 0x38]
jbe 0x10127068
mov eax, dword [esp + 0x3c]
add eax, 4
mov dword [esp + 0x10], eax
mov edi, dword [eax]
jmp 0x1012705a
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x34], esi
mov dword [ecx], edi
cmp edi, dword [esp + 0x38]
jbe 0x1012706e
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
mov edi, dword [eax]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x70]
test edx, edx
jne 0x10126f09
jmp 0x1012707a
lea eax, [esp + 0x64]
jmp 0x1012707a
lea eax, [esp + 0x64]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
inc edx
pop edi
and dword [ecx], 0
lea ecx, [ebx - 8]
and dword [eax], 0
cmp ebx, dword [esp + 0x50]
mov eax, dword [esp + 0x18]
cmova edx, ecx
mov ecx, dword [esp + 0x5c]
pop esi
pop ebp
pop ebx
mov dword [ecx + 0x14], edx
add esp, 0x4c
ret