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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x1019e08]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, ecx
push 0x1f
pop ecx
lea esi, [ebp + 0xc]
lea edi, [ebp - 0x90]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x88]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xa8], ecx
je 0x10018cfa
cmp byte [eax + 8], 0
je 0x10018cfa
mov eax, dword [ebx + 0x34]
test eax, eax
lea esi, [ebx + 0x50]
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
je 0x100187fa
push eax
call fcn.1002387b
mov eax, dword [ebx + 0x38]
test eax, eax
lea esi, [ebx + 0x40]
lea edi, [ebp - 0xa0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
je 0x10018814
push eax
call fcn.1002386f
xor esi, esi
cmp dword [ebx + 0x18], esi
je 0x1001885d
cmp dword [ebx + 0x14], esi
jle 0x1001885d
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + esi*4]
mov eax, dword [eax + 8]
test eax, eax
je 0x10018833
push eax
call fcn.1002381b
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + esi*4]
cmp dword [eax + 0xc], 0
je 0x1001884c
mov eax, dword [eax + 0x10]
test eax, eax
je 0x1001884c
push eax
call fcn.1002381b
mov eax, dword [ebx + 0x18]
push dword [eax + esi*4]
call fcn.1002381b
inc esi
cmp esi, dword [ebx + 0x14]
jl 0x10018820
push dword [ebx + 0x18]
call fcn.1002381b
mov eax, dword [ebx]
xor edi, edi
cmp eax, edi
je 0x10018873
push eax
call fcn.10023863
mov eax, dword [ebx + 0x20]
cmp eax, edi
je 0x10018880
push eax
call fcn.10023863
mov eax, dword [ebx + 0x30]
cmp eax, edi
je 0x1001888d
push eax
call fcn.10023863
mov eax, dword [ebx + 0x60]
cmp eax, edi
je 0x1001889a
push eax
call fcn.10023863
mov eax, dword [ebp - 0xa8]
cmp eax, edi
mov dword [ebx + 0x30], edi
mov dword [ebx + 0x20], edi
mov dword [ebx + 0x60], edi
mov dword [ebx], edi
je 0x100188bc
add eax, 0x430
push eax
call fcn.1002378b
mov dword [ebx], eax
cmp dword [ebp - 0x88], 1
mov esi, dword [ebp - 0x80]
mov dword [ebx + 0x3c], edi
jne 0x100188fd
cmp dword [esi + 0x24], 1
jne 0x100188fd
cmp dword [esi + 0x28], edi
jne 0x100188fd
cmp dword [esi + 0x40], 1
jne 0x100188fd
cmp dword [esi + 0x44], edi
jne 0x100188fd
cmp dword [esi + 0x74], edi
jne 0x100188fd
cmp dword [esi + 0x78], edi
jne 0x100188fd
lea eax, [ebx + 0x50]
push eax
mov dword [ebx + 0x34], edi
call dword [0x1001110]
jmp 0x100189c5
mov eax, dword [ebp - 0x84]
imul eax, eax, 0x164
push eax
call fcn.10022e4f
pop ecx
mov ecx, dword [ebp - 0x84]
cmp ecx, edi
mov dword [ebp - 0xa4], eax
jle 0x1001897d
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0xac], edx
mov edx, esi
mov dword [ebp - 0xb4], ecx
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x88], ecx
jne 0x10018947
mov dword [eax], ecx
lea edi, [eax + 4]
push 0x25
mov esi, edx
jmp 0x1001895b
mov esi, dword [ebp - 0xac]
mov dword [eax], 2
lea edi, [eax + 0x98]
push 0x33
add dword [ebp - 0xac], 0xcc
pop ecx
add edx, 0x94
add eax, 0x164
dec dword [ebp - 0xb4]
rep movsd dword es:[edi], dword [esi]
jne 0x10018931
xor edi, edi
mov eax, dword [ebp - 0xa8]
cmp eax, edi
mov ecx, dword [ebp - 0xb0]
je 0x10018995
add eax, 0x430
push eax
jmp 0x1001899a
push 0x1001524
push dword [ebp - 0x84]
push dword [ebp - 0xa4]
call fcn.100181c7
push dword [ebp - 0xa4]
mov dword [ebx + 0x34], eax
mov esi, eax
lea edi, [ebx + 0x50]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.10022e5b
pop ecx
xor edi, edi
mov eax, dword [ebp - 0xa8]
cmp eax, edi
lea esi, [ebp - 0x54]
je 0x100189da
add eax, 0x430
push eax
jmp 0x100189df
push 0x1001524
sub esp, 0x24
push 9
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xb0]
call fcn.10017f97
mov ecx, dword [ebp - 0xa8]
test ecx, ecx
mov dword [ebx + 0x38], eax
mov esi, eax
lea edi, [ebx + 0x40]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
je 0x10018a2e
lea esi, [ecx + 8]
push 4
pop ecx
mov edi, 0x1001b5c
xor edx, edx
mov dword [ebp - 0xb4], esi
repe cmpsd dword [esi], dword es:[edi]
je 0x10018a2e
mov esi, dword [ebp - 0xb4]
lea edi, [eax + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
and dword [ebx + 0x28], 0
xor esi, esi
inc esi
cmp dword [ebp - 0x88], 2
jne 0x10018a4d
mov eax, dword [ebp - 0x7c]
mov dword [ebx + 0x28], esi
mov eax, dword [eax + 0x94]
mov dword [ebx + 0x24], eax
cmp dword [ebp - 0x88], esi
mov eax, dword [ebp - 0x80]
je 0x10018a5b
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x18]
cmp eax, esi
jne 0x10018a6b
mov dword [ebx + 0x1c], 0xfffffffd
jmp 0x10018a85
cmp eax, 2
jne 0x10018a79
mov dword [ebx + 0x1c], 0xfffffffe
jmp 0x10018a85
xor ecx, ecx
cmp eax, 3
setne cl
dec ecx
mov dword [ebx + 0x1c], ecx
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x14], eax
shl eax, 2
push eax
mov dword [ebx + 0x2c], esi
call fcn.10023767
and dword [ebp - 0xa8], 0
cmp dword [ebx + 0x14], 0
mov dword [ebx + 0x18], eax
jle 0x10018c35
mov esi, dword [ebp - 0x18]
add esi, 4
mov dword [ebp - 0xac], esi
mov edi, dword [ebp - 0xa8]
push 0x18
shl edi, 2
call fcn.10023767
mov ecx, dword [ebx + 0x18]
mov dword [edi + ecx], eax
mov eax, dword [ebx + 0x18]
mov eax, dword [edi + eax]
mov ecx, dword [esi - 4]
mov dword [eax], ecx
mov eax, dword [ebx + 0x18]
lea ecx, [edi + eax]
mov eax, dword [ecx]
mov edx, dword [eax]
cmp edx, 5
jne 0x10018b09
xor ecx, ecx
mov dword [eax + 4], ecx
mov eax, dword [ebx + 0x18]
mov eax, dword [edi + eax]
mov dword [eax + 8], ecx
mov eax, dword [ebx + 0x18]
mov eax, dword [edi + eax]
mov dword [eax + 0xc], ecx
mov eax, dword [ebx + 0x18]
mov eax, dword [edi + eax]
jmp 0x10018c14
cmp edx, 3
jne 0x10018bae
and dword [ebp - 0xa4], 0
mov eax, dword [ecx]
mov ecx, dword [esi]
mov dword [eax + 0xc], ecx
push dword [esi]
call fcn.10023767
mov ecx, dword [ebx + 0x18]
mov ecx, dword [edi + ecx]
mov dword [ecx + 0x10], eax
mov ecx, dword [esi]
mov eax, dword [ebx + 0x18]
mov eax, dword [edi + eax]
mov edi, dword [eax + 0x10]
mov esi, dword [esi + 4]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0xa8]
mov eax, dword [ebx + 0x18]
lea ecx, [ebp - 0xa4]
shl esi, 2
mov eax, dword [esi + eax]
push ecx
push dword [eax + 0xc]
push dword [eax + 0x10]
call fcn.1002245d
push dword [ebp - 0xa4]
call fcn.1002378b
mov ecx, dword [ebx + 0x18]
mov ecx, dword [esi + ecx]
mov dword [ecx + 8], eax
mov eax, dword [ebx + 0x18]
mov eax, dword [esi + eax]
push dword [eax + 8]
call dword [0x10012c0]
mov ecx, dword [ebx + 0x18]
mov ecx, dword [esi + ecx]
mov dword [ecx + 4], eax
push dword [ebp - 0xa4]
call fcn.10022e5b
mov esi, dword [ebp - 0xac]
pop ecx
pop ecx
jmp 0x10018c17
mov ecx, dword [esi]
shr ecx, 1
mov dword [eax + 4], ecx
mov eax, dword [esi]
inc eax
inc eax
push eax
call fcn.10023767
mov ecx, dword [ebx + 0x18]
mov ecx, dword [edi + ecx]
mov dword [ecx + 8], eax
mov ecx, dword [esi]
mov eax, dword [ebx + 0x18]
mov eax, dword [edi + eax]
mov edi, dword [eax + 8]
mov esi, dword [esi + 4]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0xa8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x18]
shl eax, 2
mov ecx, dword [eax + ecx]
mov edx, dword [ecx + 4]
mov esi, dword [ecx + 8]
xor ecx, ecx
mov word [esi + edx*2], cx
mov edx, dword [ebx + 0x18]
mov edx, dword [eax + edx]
mov esi, dword [ebp - 0xac]
mov dword [edx + 0xc], ecx
mov edx, dword [ebx + 0x18]
mov eax, dword [eax + edx]
mov dword [eax + 0x10], ecx
inc dword [ebp - 0xa8]
mov eax, dword [ebp - 0xa8]
add esi, 0x10
cmp eax, dword [ebx + 0x14]
mov dword [ebp - 0xac], esi
jl 0x10018ab7
cmp dword [ebx + 0x34], 0
jne 0x10018c4a
mov edi, dword [ebx + 0x38]
add edi, 0x20
mov esi, 0x1001b7c
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push dword [ebx + 0x38]
mov esi, dword [ebp - 0xb0]
push dword [esi]
call fcn.10023857
test eax, eax
mov dword [ebp - 0xa4], eax
jne 0x10018cfd
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x10018c81
push eax
push dword [esi]
call fcn.1002384b
test eax, eax
mov dword [ebp - 0xa4], eax
jne 0x10018cf2
mov esi, dword [esi + 4]
push ebx
mov ebx, dword [ebp - 0xb0]
sub esp, 0x10
mov edi, esp
push dword [ebx]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.1002383f
cmp byte [ebx + 9], 0
je 0x10018cad
push dword [ebx + 4]
push dword [ebx]
call fcn.1002377f
jmp 0x10018cb4
mov ecx, ebx
call fcn.10017cbf
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [0x1001118]
test eax, eax
jne 0x10018cdc
sub esp, 0x10
mov edi, esp
push dword [ebx]
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.10023833
sub esp, 0x10
mov edi, esp
push dword [ebx]
lea esi, [ebp - 0xa0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.10023827
mov eax, dword [ebp - 0xa4]
jmp 0x10018cfd
push 5
pop eax
mov ecx, dword [ebp - 4]
call fcn.10022bb8
pop edi
pop esi
pop ebx
leave
ret 0x84