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

Disassembly:
sub esp, 0x1c
mov ecx, dword [esp + 0x28]
push ebp
mov ebp, dword [esp + 0x28]
push edi
mov edi, dword [esp + 0x28]
push ecx
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0xc], eax
mov dword [edi], eax
lea eax, [edi + 0x88]
push ebp
mov dword [edi + 4], ecx
mov dword [eax], 0
mov dword [edi + 0x8c], eax
call fcn.1015c0e0
add esp, 8
mov dword [esp + 0x28], eax
test eax, eax
jne 0x10185e68
push ebx
mov ebx, dword [esp + 0x38]
push ebx
push ebp
call fcn.1015b6e0
add esp, 8
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x10185e67
mov eax, dword [ebp + 0x20]
mov dword [edi + 0x94], eax
mov edx, dword [ebp + 0x20]
push esi
mov dword [esp + 0x1c], edx
lea esi, [edx + ebx]
lea eax, [edx + 0xf]
cmp eax, esi
ja 0x10185e37
movzx eax, byte [edx]
lea ebx, [edx + 0xf]
movzx ecx, byte [edx + 1]
shl eax, 8
or ecx, eax
mov dword [esp + 0x14], ebx
mov dword [edi + 8], ecx
movzx ecx, byte [edx + 2]
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
mov dword [edi + 0xc], ecx
movzx ecx, byte [edx + 4]
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x10], ecx
movzx eax, byte [edx + 6]
shl ax, 8
movsx ecx, ax
movzx eax, byte [edx + 7]
or ecx, eax
mov dword [edi + 0x14], ecx
movzx eax, byte [edx + 8]
shl ax, 8
movsx ecx, ax
movzx eax, byte [edx + 9]
or ecx, eax
mov dword [edi + 0x18], ecx
movzx eax, byte [edx + 0xa]
shl ax, 8
movsx ecx, ax
movzx eax, byte [edx + 0xb]
or ecx, eax
mov dword [edi + 0x1c], ecx
movzx eax, byte [edx + 0xc]
shl ax, 8
movsx ecx, ax
movzx eax, byte [edx + 0xd]
or ecx, eax
mov dword [edi + 0x20], ecx
movzx eax, byte [edx + 0xe]
mov ecx, eax
mov dword [esp + 0x18], eax
and ecx, 4
mov dword [edi + 0x24], eax
mov dword [esp + 0x20], ecx
jne 0x10185ac4
lea eax, [ebx + 2]
cmp eax, esi
ja 0x10185e37
movzx eax, byte [ebx]
add ebx, 2
shl ax, 8
movsx ecx, ax
mov dword [esp + 0x14], ebx
movzx eax, byte [ebx - 1]
or ecx, eax
mov eax, dword [esp + 0x18]
mov dword [edi + 0x28], ecx
test al, al
jns 0x10185aec
push edi
push 0x101f2adc
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.101845f0
add esp, 0x10
mov dword [esp + 0x30], eax
test eax, eax
jne 0x10185e3f
mov ebx, dword [esp + 0x14]
add ebx, 3
cmp ebx, esi
ja 0x10185e37
movzx ebp, byte [ebx - 3]
mov edx, ebx
movzx eax, byte [ebx - 2]
shl ebp, 8
or ebp, eax
movzx eax, byte [ebx - 1]
shl ebp, 8
or ebp, eax
jbe 0x10185bfc
lea eax, [ebx + ebp]
cmp eax, esi
ja 0x10185e37
lea edx, [ebx + ebp]
mov dword [esp + 0x14], edx
nop word [eax + eax]
lea eax, [ebx + 4]
cmp eax, edx
ja 0x10185bfc
movzx esi, byte [ebx]
lea edx, [ebx + 2]
mov eax, edx
shl esi, 8
movzx ecx, byte [eax - 1]
or esi, ecx
cmp esi, 4
jb 0x10185bf8
cmp esi, ebp
ja 0x10185bf8
movzx edx, byte [edx]
lea ebx, [eax - 2]
movzx ecx, byte [eax + 1]
add eax, 2
shl edx, 8
add ebx, esi
or edx, ecx
sub edx, 1
je 0x10185bca
sub edx, 1
je 0x10185b85
sub edx, 1
jne 0x10185beb
lea ecx, [edi + 0x58]
jmp 0x10185bcd
lea ecx, [eax + 0x20]
cmp ecx, ebx
ja 0x10185beb
movzx ecx, byte [eax + 0xa]
shl cx, 8
movsx edx, cx
movzx ecx, byte [eax + 0xb]
or edx, ecx
mov dword [edi + 0x2c], edx
movzx ecx, byte [eax + 0xc]
shl cx, 8
movsx edx, cx
movzx ecx, byte [eax + 0xd]
or edx, ecx
mov dword [edi + 0x30], edx
movzx ecx, byte [eax + 0xe]
movzx eax, byte [eax + 0xf]
shl cx, 8
movsx ecx, cx
or ecx, eax
mov dword [edi + 0x34], ecx
jmp 0x10185beb
lea ecx, [edi + 0x54]
push ecx
push dword [esp + 0x14]
lea ecx, [esi - 4]
push ecx
push eax
call fcn.10184540
add esp, 0x10
mov dword [esp + 0x30], eax
test eax, eax
jne 0x10185e66
mov edx, dword [esp + 0x14]
sub ebp, esi
je 0x10185bfc
jmp 0x10185b30
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
lea esi, [edx + 1]
add ecx, dword [esp + 0x3c]
cmp esi, ecx
ja 0x10185e37
movzx ebx, byte [edx]
mov dword [edi + 0x68], ebx
lea eax, [esi + ebx*2]
cmp eax, ecx
ja 0x10185e37
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x30]
push eax
push 0
push ebx
push 0
push 4
push ebp
call fcn.1015dad0
add esp, 0x18
mov dword [edi + 0x6c], eax
cmp dword [esp + 0x30], 0
jne 0x10185e3f
xor edx, edx
test ebx, ebx
je 0x10185c6e
nop dword [eax]
movzx eax, byte [esi]
add esi, 2
shl ax, 8
movsx ecx, ax
movzx eax, byte [esi - 1]
or ecx, eax
mov eax, dword [edi + 0x6c]
mov dword [eax + edx*4], ecx
inc edx
cmp edx, ebx
jb 0x10185c50
mov ecx, dword [esp + 0x1c]
lea eax, [esi + 8]
add ecx, dword [esp + 0x3c]
cmp eax, ecx
ja 0x10185e37
movzx eax, byte [esi]
mov dword [edi + 0x70], eax
movzx eax, byte [esi + 1]
mov dword [edi + 0x74], eax
movzx ecx, byte [esi + 2]
movzx eax, byte [esi + 3]
shl ecx, 8
or ecx, eax
mov edx, dword [esp + 0x18]
mov dword [edi + 0x44], ecx
movzx ecx, byte [esi + 4]
movzx eax, byte [esi + 5]
add esi, 8
shl ecx, 8
or ecx, eax
mov dword [edi + 0x38], ecx
movzx ebx, byte [esi - 2]
movzx eax, byte [esi - 1]
mov ecx, dword [esp + 0x34]
shl ebx, 8
or ebx, eax
mov eax, esi
mov dword [edi + 0x78], ebx
sub eax, dword [ecx + 0x20]
add eax, dword [esp + 0x38]
mov dword [edi + 0x7c], eax
mov eax, edx
and eax, 2
mov dword [esp + 0x14], ebx
mov dword [esp + 0x38], eax
mov eax, 0
setne al
add eax, 4
cmp dword [esp + 0x20], 0
lea ecx, [eax + 2]
cmove ecx, eax
mov eax, edx
and eax, 8
mov dword [esp + 0x24], eax
lea eax, [ecx + 1]
cmove eax, ecx
mov ecx, edx
and ecx, 0x10
mov dword [esp + 0x28], ecx
lea ecx, [eax + 1]
cmove ecx, eax
and edx, 0x20
mov dword [esp + 0x18], edx
lea eax, [ecx + 1]
cmove eax, ecx
mov ecx, dword [esp + 0x1c]
add ecx, dword [esp + 0x3c]
imul eax, ebx
add eax, esi
cmp eax, ecx
ja 0x10185e37
lea eax, [esp + 0x30]
push eax
push 0
push ebx
push 0
push 0x10
push ebp
call fcn.1015dad0
add esp, 0x18
mov dword [edi + 0x80], eax
cmp dword [esp + 0x30], 0
jne 0x10185e3f
test ebx, ebx
je 0x10185e3f
xor ebp, ebp
mov edx, esi
mov eax, esi
nop dword [eax]
mov ebx, dword [edi + 0x80]
add ebx, ebp
cmp dword [esp + 0x38], 0
je 0x10185d90
movzx esi, byte [edx]
lea ecx, [edx + 2]
movzx eax, byte [ecx - 1]
shl esi, 8
or esi, eax
jmp 0x10185d96
movzx esi, byte [esi]
lea ecx, [eax + 1]
cmp dword [esp + 0x20], 0
mov edx, ecx
mov dword [ebx], esi
je 0x10185db8
movzx eax, byte [ecx]
lea edx, [ecx + 2]
shl ax, 8
mov ecx, edx
movsx esi, ax
movzx eax, byte [edx - 1]
or esi, eax
jmp 0x10185dbb
mov esi, dword [edi + 0x28]
cmp dword [esp + 0x24], 0
mov dword [ebx + 4], esi
je 0x10185dca
lea edx, [ecx + 1]
mov ecx, edx
cmp dword [esp + 0x28], 0
lea esi, [ecx + 1]
je 0x10185de4
movzx edx, byte [ecx]
movzx eax, byte [esi]
lea esi, [ecx + 2]
shl edx, 8
or edx, eax
jmp 0x10185de7
movzx edx, byte [edx]
cmp dword [esp + 0x18], 0
mov dword [ebx + 8], edx
je 0x10185e10
add esi, 3
mov edx, esi
movzx ecx, byte [edx - 3]
movzx eax, byte [edx - 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 1]
shl ecx, 8
or ecx, eax
mov eax, edx
jmp 0x10185e24
add esi, 2
mov edx, esi
movzx ecx, byte [edx - 2]
movzx eax, byte [edx - 1]
shl ecx, 8
or ecx, eax
mov eax, esi
add ebp, 0x10
mov dword [ebx + 0xc], ecx
sub dword [esp + 0x14], 1
jne 0x10185d70
jmp 0x10185e3f
mov dword [esp + 0x30], 8
mov ebx, dword [esp + 0x34]
push ebx
call fcn.1015b7b0
push ebx
call fcn.1015bab0
mov dword [edi + 0x90], eax
add esp, 8
mov eax, dword [esp + 0x30]
mov dword [edi + 0x94], 0
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x1c
ret