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

Disassembly:
sub esp, 0x5c
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov eax, dword [eax]
mov ecx, dword [ecx]
mov dword [esp + 0x1c], eax
mov eax, dword [0x101ff2e0]
mov dword [esp + 0x14], ecx
test eax, eax
je 0x1015e2fa
call eax
test eax, eax
je 0x1015e2f6
mov eax, dword [esp + 0x6c]
mov dword [eax], 0x55
xor eax, eax
add esp, 0x5c
ret
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x90]
push ebx
mov ebx, dword [esp + 0x7c]
push ebp
mov ebp, dword [esp + 0x9c]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x20], 0
mov eax, dword [ebp + 0x20]
sub eax, dword [ebp + 0x10]
mov dword [esp + 0x50], eax
lea eax, [ebx + 6]
mov dword [esp + 8], eax
cmp byte [ecx], 0x85
mov dword [esp + 0x2c], 0
mov dword [esp + 0xc], 0xfffffffe
mov dword [esp + 0x30], 0xfffffffe
jne 0x1015e377
movzx edx, byte [ecx + 3]
movzx eax, byte [ecx + 4]
shl edx, 8
or edx, eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x54], eax
xor eax, eax
mov word [esp + 0x5a], ax
lea eax, [esp + 0x54]
mov dword [esp + 0x44], edx
mov word [esp + 0x58], dx
mov dword [ebp + 0x24], eax
push esi
push edi
mov edi, ecx
mov word [ecx + 1], 0
mov esi, dword [ebp + 0x40]
add ebx, 3
add ebx, ecx
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0xa8]
lea ecx, [esp + 0x10]
xor edx, edx
mov dword [esp + 0x30], esi
test edi, edi
mov eax, esi
mov dword [esp + 0x50], eax
cmove ecx, edx
mov dword [esp + 0x54], ecx
cmp dword [esp + 0x84], 0
mov dword [esp + 0x20], ebx
je 0x1015e3be
mov dword [ebp + 0x40], eax
cmp dword [esp + 0x80], 0
je 0x1015e3e7
lea esi, [ebx + 1]
mov byte [ebx], 0x7c
lea eax, [esi + 2]
mov word [esi], 0
add dword [esp + 0x10], 3
mov dword [esp + 0x48], esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0x20], eax
push ecx
push ebp
push dword [esp + 0x94]
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x9c]
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.10159a80
add esp, 0x30
test eax, eax
je 0x1015e5f5
cmp dword [ebp + 0x40], esi
mov ecx, dword [esp + 0x70]
cmova esi, dword [ebp + 0x40]
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x30], esi
test edi, edi
jne 0x1015e55b
cmp byte [edx], 0x77
je 0x1015e47b
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], edi
mov dword [esp + 0x14], eax
jmp 0x1015e4fe
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
test ecx, ecx
js 0x1015e4b1
cmp ecx, eax
jne 0x1015e495
cmp dword [esp + 0x34], esi
je 0x1015e4c9
mov edi, dword [esp + 0x14]
test edi, edi
jns 0x1015e4a9
mov edi, dword [esp + 0x34]
mov dword [esp + 0x28], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x38], 0xffffffff
test eax, eax
js 0x1015e4c9
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jns 0x1015e4cd
mov ecx, eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x1c], ecx
jmp 0x1015e4cd
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov eax, ecx
xor eax, esi
test eax, 0xfffffffd
jne 0x1015e4f2
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x28], eax
jne 0x1015e4f2
or esi, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], esi
jmp 0x1015e4fa
mov dword [esp + 0x14], 0xffffffff
mov ecx, dword [esp + 0x70]
cmp dword [esp + 0x80], 0
je 0x1015e554
push 0
mov eax, ecx
mov byte [ebx], 0
push ebp
shr eax, 0xb
push 0
and eax, 1
push eax
push edx
call fcn.1015ee10
mov ecx, eax
add esp, 0x14
cmp ecx, 0xfffffffd
jne 0x1015e532
mov dword [ebp + 0x74], 1
jmp 0x1015e550
test ecx, ecx
js 0x1015e5d5
cmp ecx, dword [ebp + 0x48]
jle 0x1015e542
mov dword [ebp + 0x48], ecx
mov edx, dword [esp + 0x48]
mov eax, ecx
sar eax, 8
mov byte [edx], al
mov byte [edx + 1], cl
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0xa8]
mov esi, dword [esp + 0x2c]
cmp byte [esi], 0x7c
jne 0x1015e609
test edi, edi
je 0x1015e597
mov eax, dword [esp + 0x74]
mov ebx, dword [esp + 0x88]
add dword [esp + 0x10], 3
add ebx, 3
mov ecx, dword [esp + 0x54]
add ebx, dword [eax]
inc esi
mov eax, dword [esp + 0x50]
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x30]
jmp 0x1015e3ad
mov ecx, dword [esp + 0x54]
mov eax, ebx
sub eax, edx
mov byte [ebx], 0x77
sar eax, 8
mov edi, ebx
mov byte [ebx + 1], al
mov al, bl
sub al, dl
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0xa8]
mov byte [ebx + 2], al
mov eax, dword [esp + 0x50]
mov dword [esp + 0x68], ebx
add ebx, 3
inc esi
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x30]
jmp 0x1015e3ad
cmp ecx, 0xfffffffe
jne 0x1015e5df
lea eax, [ecx + 0x26]
jmp 0x1015e5ef
cmp ecx, 0xfffffffc
mov eax, 0x19
mov edx, 0x46
cmove eax, edx
mov ecx, dword [esp + 0x7c]
mov dword [ecx], eax
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
xor eax, eax
pop ebx
add esp, 0x5c
ret
test edi, edi
jne 0x1015e635
mov edi, dword [esp + 0x18]
mov edx, ebx
sub edx, edi
movzx ecx, byte [edi + 1]
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
mov byte [edi + 2], dl
mov eax, edx
mov edx, ecx
sar eax, 8
mov byte [edi + 1], al
sub edi, edx
test ecx, ecx
jne 0x1015e615
mov ecx, dword [esp + 0x24]
mov eax, ebx
sub eax, ecx
mov byte [ebx], 0x78
sar eax, 8
mov byte [ebx + 1], al
mov al, bl
sub al, cl
mov byte [ebx + 2], al
add ebx, 3
cmp dword [esp + 0x4c], 0
jbe 0x1015e6e8
mov eax, dword [ebp + 0x24]
cmp word [eax + 6], 0
je 0x1015e6da
push dword [esp + 0x58]
mov eax, dword [esp + 0x74]
shr eax, 0xb
push ebp
and eax, 1
mov byte [ebx], 0
push eax
push 3
push ecx
call fcn.10157d60
mov ecx, dword [esp + 0x38]
mov eax, ebx
sub eax, ecx
push eax
push ecx
lea eax, [ecx + 3]
push eax
call fcn.10160b40
mov ecx, dword [esp + 0x44]
lea edx, [ebx + 3]
mov ebx, dword [esp + 0x44]
mov al, dl
sub al, bl
add esp, 0x20
mov byte [ecx], 0x81
mov ecx, edx
mov byte [ebx + 2], al
sub ecx, ebx
sar ecx, 8
mov al, dl
mov byte [ebx + 1], cl
sub al, bl
mov byte [edx], 0x78
lea ebx, [edx + 3]
mov byte [edx + 1], cl
mov byte [edx + 2], al
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp + 0x24]
add ecx, 6
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
mov dword [ebp + 0x24], eax
jmp 0x1015e6ec
mov eax, dword [ebp + 0x24]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [ebp + 0x24], eax
jmp 0x1015e6ec
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [ebp + 0x40], eax
mov eax, dword [esp + 0x74]
mov edi, dword [esp + 0x14]
mov dword [eax], ebx
mov eax, dword [esp + 0x78]
mov dword [eax], esi
mov eax, dword [esp + 0x90]
mov esi, dword [esp + 0xa8]
mov dword [eax], edx
mov eax, dword [esp + 0x94]
mov edx, dword [esp + 0x38]
mov dword [eax], edx
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x28]
mov dword [eax], edx
mov eax, dword [esp + 0x9c]
mov dword [eax], edi
test esi, esi
je 0x1015e764
mov edx, dword [esi]
mov eax, 0x7fffffeb
sub eax, edx
cmp eax, ecx
jge 0x1015e75f
mov eax, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
mov dword [eax], 0x14
xor eax, eax
pop ebx
add esp, 0x5c
ret
lea eax, [edx + ecx]
mov dword [esi], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x5c
ret