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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1002ecc0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x10038654]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x10038654]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x14]
test dword [ebx + 0x14], 0x4000
mov esi, dword [ebp + 8]
mov al, byte [ebp + 0x18]
mov dword [esp + 0x24], esi
mov byte [esp + 0x18], al
jne 0x100148b3
movzx eax, byte [ebp + 0x1c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [ebp + 0x10]
push ebx
push eax
mov eax, dword [ebp + 0xc]
push eax
push esi
call edx
mov eax, esi
jmp 0x10014a50
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
call fcn.10005b70
mov edi, eax
mov dword [esp + 0x78], 0
call fcn.10016a40
mov dword [esp + 0x78], 0xffffffff
mov edi, dword [esp + 0x20]
mov dword [esp + 0x14], eax
test edi, edi
je 0x1001491d
push 0
lea ecx, [esp + 0x2c]
call fcn.10017870
mov eax, dword [edi + 4]
test eax, eax
je 0x100148fd
cmp eax, 0xffffffff
jae 0x100148fd
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
lea ecx, [esp + 0x28]
not esi
call fcn.10017898
and esi, edi
je 0x1001491d
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
cmp byte [ebp + 0x1c], 0
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x78], 1
lea esi, [esp + 0x4c]
je 0x10014970
call fcn.10015dc0
mov edi, eax
lea esi, [esp + 0x30]
mov byte [esp + 0x78], 2
call fcn.100141a0
mov byte [esp + 0x78], 1
cmp dword [esp + 0x60], 0x10
jb 0x1001499e
mov ecx, dword [esp + 0x4c]
push ecx
jmp 0x10014996
call fcn.10015da0
mov edi, eax
lea esi, [esp + 0x30]
mov byte [esp + 0x78], 3
call fcn.100141a0
mov byte [esp + 0x78], 1
cmp dword [esp + 0x60], 0x10
jb 0x1001499e
mov edx, dword [esp + 0x4c]
push edx
call fcn.100180f0
add esp, 4
cmp dword [ebx + 0x24], 0
mov edi, dword [ebx + 0x20]
mov ecx, dword [esp + 0x40]
jl 0x100149b9
jg 0x100149b1
test edi, edi
je 0x100149b9
cmp edi, ecx
jbe 0x100149b9
sub edi, ecx
jmp 0x100149bb
xor edi, edi
mov eax, dword [ebx + 0x14]
mov esi, dword [esp + 0x18]
and eax, 0x1c0
cmp eax, 0x40
je 0x100149f4
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push esi
push ecx
mov eax, edi
push edx
lea edi, [esp + 0x34]
call fcn.10015d40
mov ecx, dword [eax]
mov dword [ebp + 0xc], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x4c]
add esp, 0xc
mov dword [ebp + 0x10], edx
xor edi, edi
cmp dword [esp + 0x44], 0x10
mov eax, dword [esp + 0x30]
jae 0x10014a03
lea eax, [esp + 0x30]
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x24]
push ecx
call fcn.10016150
mov ecx, dword [eax]
mov dword [ebp + 0xc], ecx
mov eax, dword [eax + 4]
push esi
push eax
mov dword [ebp + 0x10], eax
xor edx, edx
mov eax, edi
mov edi, dword [esp + 0x3c]
push ecx
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x24], edx
call fcn.10015d40
add esp, 0x1c
cmp dword [esp + 0x44], 0x10
jb 0x10014a4e
mov edx, dword [esp + 0x30]
push edx
call fcn.100180f0
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.100180fb
mov esp, ebp
pop ebp
ret 0x18