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

Disassembly:
sub esp, 0x48
mov eax, dword [0x10291440]
xor eax, esp
mov dword [esp + 0x44], eax
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
push ebx
push ebp
mov ebp, dword [eax + 0x1c]
mov ebx, dword [eax + 0x24]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x64]
push esi
mov dword [esp + 0x34], edx
xor esi, esi
mov edx, dword [esp + 0x70]
push edi
mov edi, dword [esp + 0x70]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x40], edi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 0
test edi, edi
je 0x10159156
mov edx, dword [esp + 0x3c]
mov dword [edi], esi
mov dword [edx], esi
push 0x10
lea edx, [esp + 0x20]
push edx
push dword [esp + 0x38]
push ecx
push eax
call fcn.100e2ad0
add esp, 0x14
test eax, eax
jne 0x10159426
lea eax, [esp + 0x44]
mov dword [esp + 0x20], esi
push eax
push 0
push 2
push 0
push 1
push dword [esp + 0x30]
call fcn.101594c0
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x101593b3
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x20]
push edi
push dword [eax + 0x10]
push dword [eax + 0xc]
lea eax, [esp + 0x30]
push eax
push ebx
call fcn.10109150
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x101593b3
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
test edx, edx
je 0x101591d3
mov eax, dword [ecx + 0x20]
mov dword [edx], eax
mov eax, dword [ecx + 0x1c]
mov dword [esp + 0x20], eax
test eax, eax
je 0x10159370
lea eax, [esp + 0x10]
mov ebp, 0x80
push eax
push 0x800
push dword [esp + 0x1c]
call fcn.100dc800
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x101593af
mov eax, dword [esp + 0x10]
mov ebx, 0x800
mov esi, eax
add eax, ebx
cmp esi, eax
jne 0x10159246
add ebp, ebp
lea eax, [esp + 0x10]
mov ebx, ebp
push eax
shl ebx, 4
push ebx
push dword [esp + 0x1c]
call fcn.100dc870
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x101593ab
mov esi, ebp
shr esi, 1
shl esi, 4
add esi, dword [esp + 0x10]
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x20]
push 0
push dword [eax + 0x10]
push dword [eax + 0xc]
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x38]
call fcn.10109150
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x101593ab
mov eax, dword [esp + 0x20]
mov dword [esi], eax
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x10]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
push dword [eax + 0x14]
push ecx
push dword [eax + 0xc]
push dword [esp + 0x30]
call fcn.1010adb0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x101593ab
add esi, 0x10
cmp dword [esp + 0x20], eax
je 0x101592cf
mov eax, dword [esp + 0x10]
jmp 0x10159212
mov eax, dword [esp + 0x1c]
sub esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x24]
push 0
push dword [eax + 0x14]
sar esi, 4
push dword [eax + 0x10]
mov dword [esp + 0x40], esi
push dword [eax + 0xc]
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.101703a0
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x101593af
push 0x1012b930
push 0x10
push esi
push dword [esp + 0x1c]
call fcn.10230810
mov ecx, dword [esp + 0x28]
push edi
push ecx
lea eax, [ecx + 0x20]
push eax
push dword [ecx + 0x1c]
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x5c]
push dword [esp + 0x38]
push dword [esp + 0x5c]
push dword [esp + 0x4c]
call fcn.10159e30
mov edi, eax
add esp, 0x34
test edi, edi
jne 0x101593af
mov esi, dword [esp + 0x34]
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
test esi, esi
jne 0x1015935f
mov eax, dword [esp + 0x18]
mov dword [eax + 0x1c], esi
jmp 0x1015936c
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov eax, dword [esp + 0x18]
mov dword [eax + 0x1c], ecx
mov ecx, dword [esp + 0x18]
test edx, edx
je 0x10159379
mov eax, dword [ecx + 0x20]
mov dword [edx], eax
mov edx, dword [esp + 0x38]
test edx, edx
je 0x10159389
mov eax, dword [ecx + 0x20]
sub eax, esi
mov dword [edx + 0x20], eax
test esi, esi
je 0x101593b7
mov edx, dword [esp + 0x40]
test edx, edx
je 0x101593b7
mov eax, dword [esp + 0x10]
mov dword [edx], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], 0
mov dword [eax], esi
jmp 0x101593cd
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x101593cd
push eax
push ebp
call fcn.100dc7e0
mov ecx, dword [esp + 0x20]
add esp, 8
test ecx, ecx
je 0x101593ee
mov eax, dword [esp + 0x1c]
push dword [eax + 0x14]
push ecx
push dword [eax + 0xc]
push ebx
call fcn.1010adb0
add esp, 0x10
test eax, eax
je 0x101593ee
test edi, edi
cmove edi, eax
cmp dword [esp + 0x44], 0
je 0x1015940f
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x20]
call fcn.101597e0
add esp, 8
test eax, eax
je 0x1015940f
test edi, edi
cmove edi, eax
push dword [esp + 0x1c]
call fcn.10102280
add esp, 4
test eax, eax
je 0x10159424
test edi, edi
cmove edi, eax
mov eax, edi
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1021eb98
add esp, 0x48
ret