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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100613c8
push eax
mov dword fs:[0], esp
sub esp, 0x94
cmp byte [ebp + 0x2c], 0
push ebx
push esi
mov esi, ecx
je 0x10018282
cmp byte [ebp + 0x28], 0
je 0x10018258
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [edx], eax
jmp 0x1001863a
mov edx, dword [ebp + 0xc]
xor ebx, ebx
inc ebx
mov dword [edx], 0
cmp dword [edx], ebx
jge 0x1001863a
mov esi, dword [ebp + 8]
mov ecx, dword [edx]
mov eax, dword [esi]
or dword [eax + ecx*4], 0xffffffff
inc dword [edx]
cmp dword [edx], ebx
jl 0x1001826f
jmp 0x1001863a
cmp byte [ebp + 0x1c], 0
je 0x100182b4
mov edx, dword [ebp + 0x24]
mov dword [edx], 0
cmp dword [edx], 2
jge 0x1001863a
mov esi, dword [ebp + 0x20]
mov ecx, dword [edx]
mov eax, dword [esi]
mov dword [eax + ecx*4], 0xfffffffc
inc dword [edx]
cmp dword [edx], 2
jl 0x1001829d
jmp 0x1001863a
mov dword [esp + 0x20], 0xdf3d
xor ebx, ebx
inc ebx
xor edx, edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x30], 0xb9725245
mov dword [esp + 0x14], 6
mov dword [esp + 0x34], ebx
mov dword [esp + 0x1c], 0xfffffff7
mov dword [esp + 0x24], 0xad0d
mov dword [esp + 0x1c], 0xfffffffe
mov dword [esp + 0x28], 0x59baaa4f
mov dword [esp + 0x2c], edx
mov dword [esp + 0xc], 0xffff
mov dword [esp + 0xc], edx
jmp 0x1001831b
mov eax, dword [esp + 0xc]
mov dword [esp + eax*4 + 0x38], 0x8664a11
inc dword [esp + 0xc]
cmp dword [esp + 0xc], ebx
jl 0x1001830b
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], edx
je 0x10018356
mov eax, dword [esp + 0x20]
mov ecx, ebx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov eax, dword [esp + 0x28]
dec dword [esp + 0x28]
test eax, eax
mov eax, ebx
mov dword [esp + 0x30], ebx
cmovs eax, edx
cmp dword [esp + 0x30], eax
jne 0x10018358
mov ecx, edx
mov eax, dword [esp + 0x20]
sub ecx, eax
jne 0x10018366
cmp dword [esp + 0x30], edx
je 0x10018368
mov edx, ebx
xor ecx, ecx
mov dword [esp + 0x38], edx
mov eax, dword [esp + 0x24]
cmp edx, eax
setge cl
sub ecx, dword [esp + 0x34]
neg ecx
sbb ecx, ecx
inc ecx
cmp ecx, dword [esp + 0x20]
jne 0x10018391
cmp dword [esp + 0x2c], 0
jne 0x10018391
xor eax, eax
jmp 0x10018393
mov eax, ebx
mov dword [esp + 0x14], eax
xor edx, edx
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
cmp ecx, eax
setne dl
cmp edx, 0xa1d127a4
sbb eax, eax
neg eax
add eax, dword [esp + 0x24]
mov dword [esp + 0x34], eax
cmp dword [esp + 0x1c], ecx
jne 0x100183df
mov eax, dword [esp + 0x20]
mov ecx, 0xc50d
sub ecx, eax
jne 0x100183d5
cmp dword [esp + 0x38], ecx
jne 0x100183d5
xor eax, eax
jmp 0x100183d7
mov eax, ebx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov eax, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
sub eax, 0xc75df642
neg eax
push dword [ebp + 0x14]
sbb eax, eax
xor edx, edx
inc eax
add eax, dword [esp + 0x18]
cmp eax, 0xf1e73e4f
setne dl
cmp dword [esp + 0x28], 0xfffffffc
sbb eax, eax
xor ecx, ecx
inc eax
cmp eax, edx
setg cl
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x5c]
call fcn.100043e0
and dword [esp + 0xa4], 0
push ecx
push dword [ebp + 0x18]
lea ecx, [esp + 0x60]
call fcn.1001c422
push ebx
lea ecx, [esp + 0x80]
mov dword [esp + 0x1c], eax
call fcn.1000457d
mov byte [esp + 0xa4], bl
lea ecx, [esp + 0x70]
mov dword [esp + 0x1c], 0xc443
mov dword [esp + 0x40], 0xbb7a
mov dword [esp + 0x3c], 0xfbc9fa8b
push 3
call fcn.1000457d
push 2
lea ecx, [esp + 0x50]
mov byte [esp + 0xa8], 2
call fcn.1000457d
push ecx
lea eax, [esp + 0x80]
mov byte [esp + 0xa8], 3
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x4c], 0xca6d786f
push eax
call fcn.100181df
add esp, 0xc
lea eax, [esp + 0x70]
lea edx, [esp + 0x10]
push eax
call fcn.1001864e
pop ecx
mov dword [esp + 0x10], 0
jmp 0x100184d3
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x4c]
mov dword [eax + ecx*4], ebx
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 2
jl 0x100184c4
push ecx
lea eax, [esp + 0x50]
push eax
call fcn.10019759
lea eax, [esp + 0x78]
push eax
push 0
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x60]
push eax
lea edx, [esp + 0x5c]
lea ecx, [esp + 0x58]
call fcn.1001812f
add esp, 0x18
lea ecx, [esp + 0x4c]
call fcn.10004600
lea ecx, [esp + 0x70]
call fcn.10004600
lea ecx, [esp + 0x7c]
mov byte [esp + 0xa4], 0
call fcn.10004600
cmp dword [esp + 0x18], 0xffffffff
je 0x10018570
push 0x426f
push 0x4f49
push 0x255b
mov edx, 0x37ac
xor cl, cl
call fcn.1001a972
add esp, 0xc
lea eax, [esp + 0x18]
xor dl, dl
lea ecx, [esp + 0x58]
push 0x370d
push 0x4106
push eax
push 0x265e
call fcn.1001ba4a
add esp, 0x10
mov dword [esp + 0x48], 0x76820624
lea ecx, [esp + 0x88]
mov dword [esp + 0x1c], 0xfffffffe
push 3
call fcn.1000457d
lea eax, [esp + 0x94]
mov byte [esp + 0xa4], 4
push eax
mov dword [esp + 0x20], 0x4185a1fa
lea edx, [esp + 0x8c]
mov dword [esp + 0x18], ebx
mov ecx, 0x18f3
push 0
call fcn.100189bb
pop ecx
lea edx, [esp + 0x4c]
call fcn.1001887a
dec dword [esp + 0x18]
pop ecx
lea ecx, [esp + 0x88]
mov byte [esp + 0xa4], 0
call fcn.10004600
push ecx
push dword [ebp + 0x18]
lea edx, [esp + 0x60]
push ecx
push ebx
lea ecx, [esp + 0x28]
call fcn.10018025
add esp, 0x10
cmp dword [esp + 0x18], 0xffffffff
je 0x1001861a
push 0x5625
lea eax, [esp + 0x1c]
mov edx, 0x47f9
push 0
push eax
lea ecx, [esp + 0x64]
call fcn.100181be
add esp, 0xc
lea eax, [esp + 0x58]
cmp esi, eax
je 0x1001862e
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.10004a8a
push 0
push ebx
lea ecx, [esp + 0x60]
call fcn.10004bb8
mov ecx, dword [esp + 0x9c]
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret