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

Disassembly:
sub esp, 0x54
mov ecx, dword [esp + 0x68]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x68]
mov edx, dword [edi]
lea eax, [edi + 0x10]
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], eax
mov ebp, dword [edx + 0x24]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x68], 0
test ecx, ecx
je 0x1015a2cf
lea ebx, [ecx*4]
lea ecx, [esp + 0x14]
push ecx
push 2
push dword [eax]
mov eax, dword [esp + 0x80]
push dword [edi + 0xc]
add eax, 0xfffffffc
add eax, ebx
push eax
push ebp
call fcn.10109150
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x1015a551
mov ecx, dword [esp + 0x78]
lea eax, [edi + 0x10]
mov edx, dword [esp + 0x28]
jmp 0x1015a2d5
xor ebx, ebx
mov dword [esp + 0x20], eax
cmp dword [eax], 0
je 0x1015a5c7
mov eax, dword [edi + 8]
cmp dword [eax + 0x74], 0
je 0x1015a5c7
test dword [edi + 0x13c], 0x2000
jne 0x1015a5c7
mov eax, dword [eax + 0x80]
test eax, eax
je 0x1015a319
mov eax, dword [eax + 0x5c]
test eax, eax
je 0x1015a319
test byte [eax + 0x31c], 8
jne 0x1015a5c7
mov eax, dword [esp + 0x7c]
sub eax, ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], eax
push ecx
shl eax, 4
push eax
push dword [edx + 0x1c]
call fcn.100dc800
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1015a551
mov eax, dword [esp + 0x74]
add ebx, eax
mov ecx, dword [esp + 0x7c]
lea eax, [eax + ecx*4]
cmp ebx, eax
jae 0x1015a3e1
mov ebp, dword [esp + 0x1c]
add ebp, 4
nop dword [eax]
mov eax, dword [ebx]
mov dword [ebp - 4], eax
lea eax, [esp + 0x68]
push eax
mov eax, dword [esp + 0x24]
push 0
push dword [eax]
push dword [edi + 0xc]
push ebx
push dword [esp + 0x24]
call fcn.10109150
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x1015a551
mov eax, dword [esp + 0x68]
push 1
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp + 4], ecx
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x6c]
mov eax, dword [eax + 0x10]
mov dword [ebp], eax
push dword [esp + 0x6c]
push dword [edi + 0xc]
push dword [esp + 0x1c]
call fcn.1010adb0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1015a551
mov ecx, dword [esp + 0x7c]
add ebx, 4
mov dword [esp + 0x68], eax
add ebp, 0x10
mov eax, dword [esp + 0x74]
lea eax, [eax + ecx*4]
cmp ebx, eax
jb 0x1015a360
mov ebp, dword [esp + 0x10]
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0x1c]
mov esi, ecx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov eax, dword [eax + 0x74]
mov dword [esp + 0x30], esi
mov eax, dword [eax + 0x40]
mov eax, dword [eax + 0x184]
mov dword [esp + 0x38], eax
shr eax, 1
mov dword [esp + 0x34], eax
mov dword [esp + 0x48], esi
mov edx, esi
mov eax, dword [esi]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
shl eax, 4
mov dword [esp + 0x4c], eax
cmp eax, dword [esp + 0x34]
jbe 0x1015a480
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x7c]
shr eax, 5
shl eax, 4
add esi, eax
mov dword [esp + 0x4c], eax
mov eax, esi
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x6c]
sub eax, ecx
sar eax, 4
sub dword [esp + 0x18], eax
mov eax, dword [esp + 0x78]
sub dword [esp + 0x18], eax
mov eax, dword [esi - 0x10]
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], 0
jmp 0x1015a488
mov dword [esp + 0x24], 1
cmp edx, ecx
jne 0x1015a496
mov eax, dword [esp + 0x14]
mov dword [esp + 0x68], eax
jmp 0x1015a4c1
lea eax, [esp + 0x68]
push eax
mov eax, dword [esp + 0x24]
push 2
push dword [eax]
lea eax, [edx - 0x10]
push dword [edi + 0xc]
push eax
push ebp
call fcn.10109150
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x1015a551
mov eax, dword [esp + 0x68]
test eax, eax
je 0x1015a4ca
mov ecx, dword [eax + 8]
jmp 0x1015a4d0
lea eax, [esp + 0x40]
xor ecx, ecx
lea edx, [esp + 0x48]
push edx
push dword [esp + 0x30]
push dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x30]
push ecx
push ebx
push dword [ebx + 8]
push dword [esp + 0x40]
push ebx
push dword [eax]
push dword [esp + 0x50]
call fcn.10166bd0
mov esi, eax
add esp, 0x2c
test esi, esi
jne 0x1015a551
mov edx, dword [esp + 0x68]
test edx, edx
je 0x1015a539
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov eax, dword [esp + 0x68]
cmp eax, dword [esp + 0x14]
je 0x1015a531
push 1
push eax
push dword [edi + 0xc]
push ebp
call fcn.1010adb0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1015a551
mov dword [esp + 0x68], 0
cmp dword [esp + 0x24], 0
jne 0x1015a5d8
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x30]
jmp 0x1015a418
mov ebp, dword [esp + 0x70]
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1015a571
push eax
mov eax, dword [esp + 0x2c]
push dword [eax + 0x1c]
call fcn.100dc7e0
add esp, 8
test ebp, ebp
je 0x1015a585
push dword [edi + 0x14]
push ebp
push dword [edi + 0xc]
push ebx
call fcn.1010adb0
add esp, 0x10
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x14]
test ecx, ecx
je 0x1015a5a9
cmp ecx, eax
je 0x1015a5a9
push dword [edi + 0x14]
push ecx
push dword [edi + 0xc]
push ebx
call fcn.1010adb0
mov eax, dword [esp + 0x24]
add esp, 0x10
test eax, eax
je 0x1015a5bd
push dword [edi + 0x14]
push eax
push dword [edi + 0xc]
push ebx
call fcn.1010adb0
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
mov ebx, dword [esp + 0x6c]
mov dword [ebx], 0
mov dword [ebx + 4], 1
mov ebp, dword [esp + 0x70]
push 1
push ebp
push dword [edi + 0xc]
push dword [esp + 0x1c]
call fcn.1010adb0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1015a555
mov eax, dword [esp + 0x74]
xor ebp, ebp
mov ecx, dword [esp + 0x78]
push ebp
push dword [eax + ecx*4]
push dword [edi + 0xc]
push dword [edi + 0x10]
push dword [esp + 0x20]
call fcn.100f0eb0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x1015a555
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
mov eax, dword [eax + ecx*4]
dec eax
mov dword [ebx + 0x20], eax
test ecx, ecx
jne 0x1015a63e
mov dword [ebx + 0x1c], ebp
mov ebx, dword [esp + 0x10]
jmp 0x1015a66e
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov dword [eax + 0x10], ebp
push dword [edi + 0x14]
push dword [esp + 0x18]
push dword [edi + 0xc]
push ebx
call fcn.1010adb0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1015a559
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x14], ebp
lea eax, [esp + 0x74]
push eax
push ecx
push ebx
call fcn.100f0cf0
add esp, 0xc
mov esi, eax
jmp 0x1015a559