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

Disassembly:
sub esp, 0x44
mov eax, dword [esp + 0x64]
push ebx
mov ebx, dword [esp + 0x6c]
push ebp
mov ebp, dword [eax + 0x40]
lea eax, [esp + 0x14]
push esi
mov esi, dword [esp + 0x58]
add ebp, 7
push edi
push eax
mov eax, dword [ebx + 0x78]
push dword [esi + 0xc]
shr ebp, 3
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x7c], ebp
call eax
mov edi, eax
add esp, 8
test edi, edi
jne 0x100376c3
mov esi, dword [esp + 0x58]
mov eax, dword [ebx + 0x80]
push esi
push dword [esp + 0x20]
call eax
mov edi, eax
add esp, 8
test edi, edi
jne 0x100376bf
push dword [esp + 0x1c]
lea eax, [ebp + 1]
push eax
mov eax, dword [esp + 0x68]
push 1
push dword [eax + 4]
push dword [eax]
mov eax, dword [ebx + 0x70]
push esi
call eax
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x100376bf
mov eax, dword [esp + 0x70]
xor ebp, ebp
movzx ecx, al
mov eax, ecx
mov dword [esp + 0x20], ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x40], eax
test cl, 1
jne 0x10037394
mov ebx, ecx
inc ebp
mov eax, ebx
mov ecx, ebp
sar eax, cl
test al, 1
je 0x10037385
mov ebx, dword [esp + 0x78]
push dword [esp + 0x5c]
call fcn.1000d6c0
dec eax
add eax, ebp
cdq
idiv ebp
push dword [esp + 0x24]
mov edi, eax
mov dword [esp + 0x3c], edi
call fcn.10027380
mov dword [esp + 0x30], eax
add esp, 8
imul eax, edi
inc eax
imul eax, dword [esp + 0x74]
lea eax, [eax*2 + 1]
mov dword [esp + 0x48], eax
cmp eax, dword [esp + 0x6c]
jbe 0x100373dd
mov edi, 0x105
jmp 0x100376bf
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0
push eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 0
push dword [eax + 0xc]
mov eax, dword [ebx + 0x78]
call eax
mov edi, eax
add esp, 8
test edi, edi
jne 0x100376bf
mov eax, dword [ebx + 0x80]
push esi
push dword [esp + 0x1c]
call eax
mov edi, eax
add esp, 8
test edi, edi
jne 0x100376bf
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x60]
push dword [eax + 0xc]
mov eax, dword [ebx + 0x78]
call eax
mov edi, eax
add esp, 8
test edi, edi
jne 0x100376bf
mov eax, dword [ebx + 0x80]
push esi
push dword [esp + 0x14]
call eax
mov edi, eax
add esp, 8
test edi, edi
jne 0x100376bf
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x60]
push dword [eax + 0xc]
mov eax, dword [ebx + 0x78]
call eax
mov edi, eax
add esp, 8
test edi, edi
jne 0x100376bf
mov eax, dword [ebx + 0x80]
push esi
push dword [esp + 0x18]
call eax
mov edi, eax
add esp, 8
test edi, edi
jne 0x100376bf
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x60]
push dword [esp + 0x24]
push dword [eax + 0xc]
call fcn.10026f90
add esp, 0xc
cmp dword [esp + 0x4c], edi
je 0x100376ea
mov ecx, dword [esp + 0x64]
push dword [esp + 0x10]
mov eax, dword [esp + 0x24]
push dword [esp + 0x20]
mov byte [ecx], al
inc ecx
mov eax, dword [ebx + 0x90]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x2c], edi
call eax
mov edi, eax
add esp, 8
test edi, edi
jne 0x100376bf
xor ecx, ecx
mov dword [esp + 0x20], ecx
cmp dword [esp + 0x40], ecx
jle 0x100376b5
mov edx, dword [esp + 0x74]
mov edi, dword [esp + 0x28]
lea eax, [edx + edx]
imul edi, eax
mov eax, dword [esp + 0x64]
add eax, edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], eax
xor edx, edx
lea ecx, [ecx]
test ecx, ecx
je 0x1003754b
mov eax, dword [ebx + 0x8c]
push ebx
push dword [esp + 0x14]
push dword [esp + 0x24]
push esi
call eax
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100376bf
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x4c]
inc ecx
mov dword [esp + 0x20], ecx
cmp dword [eax + edx*4], ecx
jne 0x100375a1
push dword [esp + 0x14]
mov eax, dword [ebx + 0x94]
push dword [esp + 0x14]
push esi
call eax
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x100376bf
mov ecx, dword [esp + 0x74]
push ecx
push eax
push dword [esp + 0x6c]
lea eax, [esp + 0x50]
push eax
lea eax, [ecx + ecx]
push eax
push dword [esp + 0x28]
mov eax, dword [ebx + 0x6c]
push esi
call eax
mov edi, eax
add esp, 0x1c
test edi, edi
jne 0x100376bf
push dword [esp + 0x18]
mov eax, dword [ebx + 0x90]
push dword [esp + 0x14]
call eax
mov edi, eax
add esp, 8
test edi, edi
jne 0x100376bf
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
cmp dword [eax + edx*4], ecx
jne 0x100376ab
mov eax, dword [esp + 0x34]
cmp edx, 1
jge 0x100375dd
inc eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], 1
cmp eax, 1
jle 0x1003768d
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], eax
lea ebx, [ebx]
xor esi, esi
test ebp, ebp
jle 0x1003762b
mov eax, dword [esp + 0x18]
push ebx
push eax
push eax
push dword [esp + 0x64]
mov eax, dword [ebx + 0x8c]
call eax
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100376bf
inc esi
cmp esi, ebp
jl 0x10037606
push dword [esp + 0x14]
mov esi, dword [esp + 0x5c]
push dword [esp + 0x1c]
mov eax, dword [ebx + 0x94]
push esi
call eax
mov ecx, dword [esp + 0x80]
lea eax, [esp + 0x50]
push ecx
push 0
push dword [esp + 0x40]
push eax
lea eax, [ecx + ecx]
push eax
push dword [esp + 0x34]
mov eax, dword [ebx + 0x6c]
push esi
call eax
mov edi, eax
add esp, 0x28
test edi, edi
jne 0x100376bf
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
inc eax
add dword [esp + 0x2c], ecx
mov dword [esp + 0x38], eax
cmp eax, dword [esp + 0x3c]
jl 0x10037600
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x74]
inc edx
mov dword [esp + 0x24], edx
lea eax, [ebx + ebx]
mov ebx, dword [esp + 0x78]
add dword [esp + 0x64], eax
add dword [esp + 0x30], eax
cmp edx, dword [esp + 0x50]
je 0x100376b5
cmp ecx, dword [esp + 0x40]
jl 0x10037520
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x48]
mov dword [eax], ecx
mov esi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x100376ea
mov eax, dword [esp + 0x50]
shl eax, 2
push eax
push 0
push ecx
call fcn.100506f0
push dword [esp + 0x58]
push dword [esi + 0xc]
call fcn.10050630
add esp, 0x14
push dword [esp + 0x18]
mov eax, dword [ebx + 0x7c]
call eax
push dword [esp + 0x14]
mov eax, dword [ebx + 0x7c]
call eax
push dword [esp + 0x1c]
mov eax, dword [ebx + 0x7c]
call eax
push dword [esp + 0x28]
mov eax, dword [ebx + 0x7c]
call eax
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret