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

Disassembly:
sub esp, 0x24
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x34]
push ebx
push ebp
mov ebp, dword [esp + 0x50]
push esi
mov esi, dword [esp + 0x38]
push edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0x18], 0
test edi, edi
jle 0x10152aa8
mov ebx, dword [esp + 0x38]
imul eax, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x2c], eax
mov eax, edi
mov edi, ecx
imul edi, edx
mov edx, dword [esp + 0x68]
shl edi, 2
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x64]
sub edx, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x20], edx
cmp ecx, eax
mov edx, eax
cmovl edx, ecx
xor edi, edi
mov dword [esp + 0x24], edx
test esi, esi
jle 0x10152a76
mov ebx, dword [esp + 0x10]
nop dword [eax + eax]
push dword [esp + 0x50]
mov eax, dword [esp + 0x24]
cmp ebp, esi
push dword [esp + 0x58]
mov ecx, esi
push dword [esp + 0x68]
cmovl ecx, ebp
add eax, ebx
push dword [esp + 0x78]
push eax
mov eax, dword [esp + 0x28]
push ebx
push dword [esp + 0x5c]
add eax, edi
push edx
push ecx
push eax
call dword [0x10b48564]
add esp, 0x28
test eax, eax
je 0x10152a4f
push 0x107d3460
push 2
push dword [esp + 0x80]
call fcn.1006e850
add esp, 0xc
mov edx, dword [esp + 0x24]
lea eax, [ebp*4]
add edi, ebp
sub esi, ebp
add ebx, eax
cmp edi, dword [esp + 0x3c]
jl 0x10152a00
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
sub eax, ecx
mov edi, dword [esp + 0x28]
add edx, ecx
add ebx, dword [esp + 0x2c]
add dword [esp + 0x10], edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ebx
cmp edx, dword [esp + 0x40]
jl 0x101529e2
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x60]
lea ecx, [esp + 0x2c]
mov edi, dword [esp + 0x4c]
shl ebx, 4
mov ebp, dword [esp + 0x48]
add ebx, 0x1063c708
push ebx
push ecx
push edx
push dword [esp + 0x74]
push edx
push dword [esp + 0x78]
push dword [esp + 0x68]
push eax
push dword [esp + 0x58]
push edi
push dword [esp + 0x68]
push esi
push ebp
call fcn.101535d0
add esp, 0x34
cmp dword [ebx], 0
jne 0x10152afe
mov edx, dword [esp + 0x70]
mov eax, 0x80
mov dword [edx], 0
jmp 0x10152ba6
cmp dword [ebx + 4], 0
mov ecx, dword [esp + 0x2c]
jne 0x10152b83
mov edx, dword [esp + 0x70]
cmp ecx, 0xffffffa0
jge 0x10152b6e
mov dword [edx], 0xffffffa0
mov eax, 0xe0
cmp eax, 0x5f
mov ecx, 0x5f
cmovg eax, ecx
push ebx
push dword [esp + 0x74]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x74]
push 2
push eax
push dword [esp + 0x78]
push eax
push dword [esp + 0x7c]
push dword [esp + 0x6c]
push dword [esp + 0x64]
push dword [esp + 0x5c]
push edi
push dword [esp + 0x6c]
push esi
push ebp
call fcn.10152ea0
mov ecx, dword [esp + 0xac]
add esp, 0x38
pop edi
pop esi
pop ebp
mov dword [ecx], eax
mov dword [ecx + 4], edx
pop ebx
add esp, 0x24
ret
mov eax, 0x1f
cmp ecx, eax
cmovg ecx, eax
mov eax, 0x80
mov dword [edx], ecx
sub eax, ecx
jmp 0x10152baa
cmp ecx, 0xffffffa0
jge 0x10152b8f
mov ecx, 0xffffffa0
jmp 0x10152b99
mov eax, 0x1f
cmp ecx, eax
cmovg ecx, eax
mov edx, dword [esp + 0x70]
mov eax, 0x80
sub eax, ecx
mov dword [edx], ecx
sub eax, dword [esp + 0x30]
cmp eax, 0xffffffe0
jge 0x10152b1c
mov eax, 0xffffffe0
jmp 0x10152b27