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

Disassembly:
push 0xffffffffffffffff
push 0x1001f1ad
mov eax, dword fs:[0]
push eax
sub esp, 0x47c
mov eax, dword [0x10030028]
xor eax, esp
mov dword [esp + 0x478], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10030028]
xor eax, esp
push eax
lea eax, [esp + 0x490]
mov dword fs:[0], eax
mov esi, edx
mov eax, dword [esp + 0x4a0]
mov edi, dword [0x1002142c]
mov ebx, dword [esp + 0x4ac]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x4a4]
push 5
xor ebp, ebp
push eax
mov dword [esp + 0x1c], ecx
mov dword [0x10030ab4], ebp
mov dword [0x10030ab8], ebp
call edi
cmp dword [0x10030ab4], esi
je 0x100181e8
jmp 0x100181d0
push 2
push eax
call edi
mov ecx, dword [0x10030ab4]
add ecx, 1
cmp ecx, esi
mov dword [0x10030ab4], ecx
jne 0x100181d0
push 0x206
lea edx, [esp + 0x82]
push ebp
push edx
mov dword [0x10030ab8], eax
mov word [esp + 0x88], bp
call fcn.1001143e
add esp, 0xc
cmp ebx, ebp
jne 0x10018214
mov ebx, 0x1002429c
push ebx
lea ecx, [esp + 0x48]
call dword [0x10021238]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x49c], ebp
call dword [0x10021234]
mov ecx, dword [eax + 4]
mov ebp, dword [eax]
lea edx, [esp + 0x34]
mov dword [esp + 0x28], ecx
push edx
lea ecx, [esp + 0x48]
call dword [0x10021230]
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
lea edx, [esp + 0x3c]
mov dword [esp + 0x18], ecx
push edx
lea ecx, [esp + 0x48]
call dword [0x10021234]
mov esi, dword [eax + 4]
mov ecx, dword [eax]
mov edi, ebx
sub edi, esi
sar edi, 1
cmp ebp, 0xfffffffe
mov dword [esp + 0x18], ecx
je 0x100182bc
test ebp, ebp
jne 0x10018283
call dword [0x10021368]
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x18], eax
cmp eax, 8
lea eax, [ebp + 4]
jb 0x10018296
mov ecx, dword [eax]
jmp 0x10018298
mov ecx, eax
mov edx, dword [esp + 0x28]
lea edi, [edx + edi*2]
mov edx, dword [ebp + 0x14]
lea ecx, [ecx + edx*2]
cmp edi, ecx
ja 0x100182b6
cmp dword [esp + 0x18], 8
jb 0x100182b2
mov eax, dword [eax]
cmp edi, eax
jae 0x100182bc
call dword [0x10021368]
cmp esi, ebx
je 0x100182de
mov edi, dword [esp + 0x28]
sub edi, esi
movzx edx, word [esi]
push edx
call dword [0x10021378]
mov word [edi + esi], ax
add esi, 2
add esp, 4
cmp esi, ebx
jne 0x100182c6
xor edi, edi
push edi
push 0x100242a0
lea ecx, [esp + 0x4c]
call dword [0x10021190]
mov ecx, dword [0x100211a0]
cmp eax, dword [ecx]
je 0x1001838f
mov ecx, dword [0x10030ab8]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x24]
push 0x760
lea eax, [esp + 0x84]
push eax
push 0x104
push 0xd
push ecx
push edx
mov dword [esp + 0x34], edi
call fcn.10016880
cmp dword [esp + 0x4a8], edi
jne 0x1001836f
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x80]
push ecx
call dword [0x1002138c]
add esp, 8
test eax, eax
jne 0x1001853e
lea ecx, [esp + 0x44]
mov dword [esp + 0x498], 0xffffffff
call dword [0x10021220]
xor eax, eax
jmp 0x1001855b
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x80]
push eax
call dword [0x1002137c]
add esp, 8
test eax, eax
je 0x1001853e
jmp 0x10018353
mov edx, dword [0x10030ab8]
push 0x104
lea ecx, [esp + 0x80]
push ecx
push edx
call dword [0x10021440]
cmp eax, edi
jne 0x100183e5
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x148], 1
jne 0x100183e5
call fcn.10014b80
test al, al
je 0x100183e5
call dword [0x10021054]
mov esi, dword [esp + 0x14]
push eax
push esi
push 0x100242b0
push 0xd
push 0x10024368
call fcn.10014d70
add esp, 0x14
jmp 0x100183e9
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x4a8], edi
mov ebx, dword [0x1002138c]
push esi
jne 0x1001840f
lea ecx, [esp + 0x80]
push ecx
call ebx
add esp, 8
test eax, eax
jne 0x10018428
jmp 0x10018353
lea edx, [esp + 0x80]
push edx
call dword [0x1002137c]
add esp, 8
test eax, eax
jne 0x10018353
cmp dword [esp + 0x58], edi
je 0x1001853e
push 0x206
lea eax, [esp + 0x28a]
push edi
push eax
mov word [esp + 0x290], di
call fcn.1001143e
mov edx, dword [0x10030ab8]
add esp, 0xc
push 0x104
lea ecx, [esp + 0x288]
push ecx
push edx
call dword [0x10021450]
test eax, eax
je 0x10018353
lea eax, [esp + 0x284]
push eax
lea ecx, [esp + 0x64]
call dword [0x10021238]
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x64]
mov byte [esp + 0x49c], 1
call dword [0x10021234]
mov esi, dword [eax]
mov ebp, dword [eax + 4]
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x64]
call dword [0x10021230]
mov ecx, dword [eax]
mov edi, dword [eax + 4]
lea edx, [esp + 0x24]
mov dword [esp + 0x2c], ecx
push edx
lea ecx, [esp + 0x64]
call dword [0x10021234]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push ebp
push esi
mov byte [esp + 0x20], 0
mov edx, dword [esp + 0x20]
push edx
mov edx, dword [0x10021378]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x24]
push ecx
push edx
lea ecx, [esp + 0x40]
push ecx
call fcn.10007f40
mov ecx, dword [esp + 0x60]
mov eax, 8
add esp, 0x18
cmp dword [esp + 0x5c], eax
jae 0x10018508
lea ecx, [esp + 0x48]
cmp dword [esp + 0x78], eax
mov eax, dword [esp + 0x64]
jae 0x10018516
lea eax, [esp + 0x64]
push ecx
push eax
call ebx
add esp, 8
test eax, eax
mov byte [esp + 0x498], 0
lea ecx, [esp + 0x60]
jne 0x10018538
call dword [0x10021220]
jmp 0x10018353
call dword [0x10021220]
mov esi, dword [0x10030ab8]
lea ecx, [esp + 0x44]
mov dword [esp + 0x498], 0xffffffff
call dword [0x10021220]
mov eax, esi
mov ecx, dword [esp + 0x490]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x478]
xor ecx, esp
call fcn.10010eee
add esp, 0x488
ret 0x10