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

Disassembly:
sub esp, 0x44
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x60]
push ebx
mov ebx, dword [esp + 0x4c]
mov edx, dword [edx]
mov ecx, dword [ecx]
push ebp
mov eax, dword [ebx]
mov ebp, edx
push esi
mov esi, dword [esp + 0x5c]
mov ebx, edx
shl ebx, 4
add ebx, esi
mov dword [esp + 0x1c], eax
push edi
xor edi, edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], edi
mov eax, dword [eax + 0x24]
mov dword [esp + 0x14], eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], 1
test edx, edx
je 0x10159e97
cmp dword [eax], ecx
jne 0x10159e8f
dec ecx
sub eax, 0x10
sub edx, 1
jne 0x10159e82
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], edx
mov ecx, dword [esp + 0x78]
nop dword [eax + eax]
mov eax, dword [esp + 0x58]
cmp dword [eax + 0x10], 0
je 0x1015a038
mov edx, dword [eax + 8]
cmp dword [edx + 0x74], 0
je 0x1015a038
test dword [eax + 0x13c], 0x2000
jne 0x1015a038
mov eax, dword [edx + 0x80]
test eax, eax
je 0x10159ee9
mov eax, dword [eax + 0x5c]
test eax, eax
je 0x10159ee9
test byte [eax + 0x31c], 8
jne 0x1015a038
mov eax, dword [esp + 0x70]
mov ecx, ebp
shl ecx, 4
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], esi
mov ebx, dword [eax]
mov eax, dword [edx + 0x74]
mov dword [esp + 0x1c], 1
mov dword [esp + 0x2c], ebx
mov eax, dword [eax + 0x40]
mov edx, dword [eax + 0x184]
mov eax, edx
shr eax, 1
cmp ecx, eax
jbe 0x10159f4f
mov ebp, edx
mov dword [esp + 0x1c], 0
mov edx, dword [esp + 0x60]
shr ebp, 5
mov eax, ebp
shl eax, 4
mov dword [esp + 0x3c], eax
lea ecx, [eax + esi]
mov eax, dword [esp + 0x18]
shl eax, 4
add eax, edx
cmp ecx, eax
jb 0x10159f53
mov eax, dword [ecx - 0x10]
mov dword [esp + 0x2c], eax
jmp 0x10159f53
mov edx, dword [esp + 0x60]
cmp esi, edx
je 0x10159f85
mov ebx, dword [esp + 0x58]
lea eax, [esp + 0x10]
push eax
push 0
push dword [esp + 0x64]
add ebx, 0xc
lea eax, [esi - 0x10]
push dword [ebx]
push eax
push dword [esp + 0x28]
call fcn.10109150
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x1015a190
mov eax, dword [esp + 0x10]
mov ebx, ebp
shl ebx, 4
add ebx, esi
mov dword [esp + 0x30], 0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x34], 0
test eax, eax
je 0x10159fad
mov ecx, dword [eax + 8]
jmp 0x10159fb3
lea eax, [esp + 0x30]
xor ecx, ecx
mov ebp, dword [esp + 0x58]
lea edx, [esp + 0x38]
push edx
push dword [esp + 0x30]
push dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x84]
push ecx
push eax
push 0
push dword [esp + 0x38]
push eax
push dword [ebp + 0x10]
push dword [esp + 0x48]
call fcn.10166bd0
mov edi, eax
add esp, 0x2c
test edi, edi
jne 0x1015a19a
mov edx, dword [esp + 0x10]
test edx, edx
je 0x1015a02a
mov ecx, dword [esp + 0x74]
lea ebx, [ebp + 0xc]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [edx], eax
mov dword [edx + 4], ecx
push dword [ebp + 0x14]
push dword [esp + 0x14]
push dword [ebx]
push dword [esp + 0x20]
call fcn.1010adb0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1015a194
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x10], 0
jmp 0x1015a04d
mov ebp, dword [esp + 0x58]
test ecx, ecx
jne 0x1015a04d
mov eax, dword [esp + 0x74]
mov dword [eax], ecx
mov dword [eax + 4], 1
cmp esi, ebx
jae 0x1015a170
mov eax, dword [esp + 0x18]
shl eax, 4
add eax, dword [esp + 0x60]
mov dword [esp + 0x2c], eax
cmp esi, eax
jae 0x1015a170
lea eax, [esp + 0x10]
push eax
xor eax, eax
lea ebx, [ebp + 0xc]
test ecx, ecx
mov ecx, 2
cmove eax, ecx
push eax
push dword [esp + 0x64]
push dword [ebx]
push esi
push dword [esp + 0x28]
call fcn.10109150
mov edi, eax
add esp, 0x18
test edi, edi
je 0x1015a0b9
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x1015a194
cmp edi, 0xffff86f6
jne 0x1015a194
xor edi, edi
jmp 0x1015a15d
cmp dword [esp + 0x78], 0
je 0x1015a105
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
cmp eax, dword [esi + 8]
jne 0x1015a139
mov eax, dword [ecx + 4]
cmp eax, dword [esi + 0xc]
je 0x1015a0d8
lea ebx, [ebp + 0xc]
jmp 0x1015a139
mov eax, dword [esp + 0x20]
push 0
push dword [eax + 4]
lea eax, [esp + 0x18]
push dword [esp + 0x64]
push dword [ebx]
push eax
push dword [esp + 0x28]
call fcn.101703a0
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x1015a1a3
lea ebx, [ebp + 0xc]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
cmp esi, eax
mov eax, dword [esp + 0x10]
jne 0x1015a11d
mov dword [eax + 0x10], 0
jmp 0x1015a123
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x10], ecx
mov eax, dword [esp + 0x74]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x10]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
push dword [eax + 4]
push ecx
push dword [ebx]
push dword [esp + 0x20]
call fcn.1010adb0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1015a194
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x24]
add esi, 0x10
mov eax, dword [esp + 0x2c]
cmp esi, ebx
jb 0x1015a064
cmp dword [esp + 0x1c], 0
jne 0x1015a1bf
mov eax, dword [esp + 0x68]
mov esi, ebx
mov ebp, dword [eax]
shl ebp, 4
sub ebp, ebx
add ebp, dword [esp + 0x60]
sar ebp, 4
jmp 0x10159ea0
mov ebp, dword [esp + 0x58]
mov esi, dword [esp + 0x14]
jmp 0x1015a1fe
mov esi, dword [esp + 0x14]
lea ebx, [ebp + 0xc]
jmp 0x1015a1fe
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
push dword [eax + 4]
push dword [esp + 0x14]
push dword [ebx]
push esi
call fcn.1010adb0
add esp, 0x10
jmp 0x1015a1fe
mov ebx, dword [esp + 0x70]
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
cmp esi, dword [ebx]
je 0x1015a23c
mov eax, dword [esp + 0x68]
cmp edx, dword [eax]
je 0x1015a22b
xor eax, eax
lea ebx, [ebp + 0xc]
test ecx, ecx
setne al
push eax
lea eax, [esi + 1]
mov esi, dword [esp + 0x18]
push eax
push dword [ebx]
push dword [ebp + 0x10]
push esi
call fcn.100f0eb0
mov edi, eax
add esp, 0x14
test edi, edi
je 0x1015a21f
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1015a242
push dword [ebp + 0x14]
push eax
push dword [ebx]
push esi
call fcn.1010adb0
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x70]
mov ecx, dword [esp + 0x64]
test ecx, ecx
je 0x1015a23a
mov eax, dword [ebx]
sub eax, esi
add dword [ecx + 0x1c], eax
mov dword [ebx], esi
mov eax, dword [esp + 0x68]
mov dword [eax], edx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret