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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, dword [esi + 0x18]
mov ecx, dword [ebx + 0x10]
push edi
xor edi, edi
mov eax, 0x42018
cmp ecx, eax
mov byte [ebp - 1], 1
mov dword [ebx + 0x14], edi
ja 0x21a5a
je 0x21a0e
sub ecx, 0x42000
je 0x219f3
push 4
pop eax
sub ecx, eax
je 0x219cb
sub ecx, eax
je 0x21968
sub ecx, eax
je 0x218fb
sub ecx, eax
je 0x21883
sub ecx, eax
jne 0x219ea
cmp dword [ebx + 0x18], 8
jb 0x219e3
mov eax, dword [ebp + 8]
mov dword [ebx + 0x1c], 0x21390
mov dword [ebx + 0x20], eax
jmp 0x21ce1
push 2
pop edx
cmp dword [ebx + 0x18], edx
jb 0x21903
mov al, byte [ebx + 0x1c]
cmp al, dl
jae 0x21cde
cmp byte [ebx + 0x1d], 1
jae 0x21cde
mov edi, dword [esi + 0x28]
mov byte [edi + 0xaa], al
mov al, byte [ebx + 0x1d]
mov byte [edi + 0xab], al
and byte [edi + 0xac], 0
mov eax, 0x113b0
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], eax
xor eax, eax
mov al, byte [edi + 0xab]
push 0
push dword [ebp + 0xc]
push 0
push eax
xor eax, eax
mov al, byte [edi + 0xaa]
push eax
push dword [ebp + 8]
call fcn.00014d42
cmp al, 1
mov byte [ebp - 1], al
jne 0x21ce1
mov esi, dword [ebp + 0xc]
jmp 0x21b39
mov eax, dword [ebx + 0x18]
cmp eax, 0x5c
jae 0x2190f
mov dword [ebx + 0x14], 3
jmp 0x21ce1
mov edx, dword [ebp + 8]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x14], edi
mov dword [ebp - 8], eax
jmp 0x2195a
cmp dword [ebp - 8], 0x58
jb 0x21ce1
mov eax, dword [edx + 0x4c0]
mov ecx, dword [eax]
mov dword [edx + 0x4c0], ecx
mov ecx, dword [ebx + 0x1c]
imul ecx, ecx, 0x58
lea edi, [ecx + ebx + 0x20]
push 0x16
lea esi, [eax + 4]
pop ecx
rep movsd dword es:[edi], dword [esi]
inc dword [ebx + 0x1c]
sub dword [ebp - 8], 0x58
lea ecx, [edx + 0x4bc]
mov esi, dword [ecx]
mov dword [eax], esi
mov dword [ecx], eax
cmp dword [edx + 0x4c0], 0
jne 0x2191d
jmp 0x21ce1
mov esi, dword [ebx + 0x18]
cmp esi, 0x218
jb 0x219e3
mov ax, word [ebx + 0x1e]
mov di, word [ebx + 0x1c]
push 2
pop edx
cmp ax, dx
ja 0x21bda
movzx ecx, ax
movzx edi, di
lea eax, [edi + ecx]
cmp eax, edx
jg 0x21bda
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x28]
and dword [eax + 0x78], 0
push 0
push edx
push dword [ebp + 8]
add ebx, 0x20
mov dword [eax + 0x74], esi
mov dword [eax + 0x7c], ebx
mov dword [eax + 0x6c], ecx
mov dword [eax + 0x68], edi
mov dword [eax + 0x40], 0x210a8
call fcn.00013e88
mov byte [ebp - 1], al
jmp 0x21ce1
push dword [ebx + 0x18]
lea eax, [ebx + 0x1c]
push eax
push dword [ebp + 8]
call fcn.00016e84
cmp eax, dword [ebx + 0x18]
jbe 0x21ce1
mov dword [ebx + 0x14], 3
mov byte [ebp - 1], 6
jmp 0x21ce1
cmp dword [ebx + 0x18], 4
jb 0x21903
mov word [ebx + 0x1c], 2
mov word [ebx + 0x1e], 5
jmp 0x21ce1
mov eax, dword [ebx + 0x18]
cmp eax, 0x18
jb 0x21a1e
add eax, 0x1c
cmp dword [esi + 0x10], eax
jae 0x21a2a
mov dword [ebx + 0x14], 3
jmp 0x21b57
lea eax, [ebp - 8]
push eax
push dword [ebx + 0x1c]
lea eax, [ebx + 0x24]
push dword [ebx + 0x20]
push eax
call fcn.00020c18
test al, al
je 0x21a4c
movzx eax, al
mov dword [ebx + 0x14], eax
jmp 0x21b57
push esi
push dword [ebp + 8]
call fcn.00016f60
jmp 0x219c3
sub ecx, 0x4201c
je 0x21c18
push 4
pop eax
sub ecx, eax
je 0x21bb1
sub ecx, eax
je 0x21b91
sub ecx, eax
je 0x21b60
sub ecx, eax
jne 0x219ea
mov edi, dword [esi + 0x28]
xor eax, eax
mov ax, word [ebx + 0x1e]
push 3
pop ecx
push 2
pop edx
and eax, ecx
test ax, ax
je 0x21acd
mov esi, dword [ebx + 0x28]
and dword [ebx + 0x14], 0
cmp esi, 0x2c
jae 0x21ab0
mov dword [ebx + 0x14], edx
jmp 0x21acd
cmp ax, cx
je 0x21aab
mov eax, dword [ebx + 0x24]
add eax, esi
cmp dword [ebx + 0x18], eax
jb 0x21aca
mov esi, dword [ebp + 0xc]
add eax, 0x1c
cmp eax, dword [esi + 0x10]
jbe 0x21acd
mov dword [ebx + 0x14], ecx
test byte [ebx + 0x1e], 8
je 0x21adc
cmp byte [ebx + 0x23], 0x10
jbe 0x21adc
mov dword [ebx + 0x14], edx
cmp dword [ebx + 0x14], 0
jne 0x21b57
mov esi, dword [ebp + 0xc]
mov dword [edi + 0x40], 0x14dd4
mov dword [edi + 0x44], fcn.00014068
mov dword [edi + 0x48], fcn.000140fc
mov al, byte [ebx + 0x20]
mov byte [edi + 0xaa], al
mov cl, byte [ebx + 0x21]
lea eax, [edi + 0xab]
mov byte [eax], cl
movzx eax, byte [eax]
xor ecx, ecx
mov cl, byte [ebx + 0x22]
push 0
push esi
mov byte [edi + 0xac], cl
push ecx
push eax
xor eax, eax
mov al, byte [edi + 0xaa]
push eax
push dword [ebp + 8]
call fcn.00014d42
cmp al, 1
mov byte [ebp - 1], al
jne 0x21b48
push esi
push dword [ebp + 8]
call dword [edi + 0x40]
mov al, byte [esi + 3]
jmp 0x219c3
test al, al
je 0x21ce1
mov dword [ebx + 0x14], 4
mov byte [ebp - 1], 1
jmp 0x21ce1
push 3
pop ecx
cmp dword [ebx + 0x18], ecx
jb 0x21b89
lea eax, [ebx + 0x1e]
push eax
lea eax, [ebx + 0x1d]
push eax
xor eax, eax
mov al, byte [ebx + 0x1c]
push eax
push dword [ebp + 8]
call fcn.00015b50
movzx eax, al
mov dword [ebx + 0x14], eax
jmp 0x21ce1
mov dword [ebx + 0x14], ecx
jmp 0x21ce1
cmp dword [ebx + 0x18], 2
jb 0x21903
xor eax, eax
mov al, byte [ebx + 0x1d]
push eax
xor eax, eax
mov al, byte [ebx + 0x1c]
push eax
push dword [ebp + 8]
call fcn.00015b4a
jmp 0x21b7e
mov eax, dword [ebx + 0x18]
cmp eax, 0x18
jb 0x219e3
mov di, word [ebx + 0x1c]
mov si, word [ebx + 0x1e]
lea ecx, [ebx + 0x20]
mov dword [ebp - 0xc], ecx
movzx edx, di
movzx ecx, si
add ecx, edx
push 2
pop edx
cmp ecx, edx
jle 0x21be3
mov byte [ebp - 1], 6
jmp 0x21cde
mov dword [ebp - 8], eax
push dword [ebp - 8]
movzx eax, di
push dword [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.00016f0c
cmp eax, dword [ebp - 8]
ja 0x219e3
add dword [ebp - 0xc], eax
sub dword [ebp - 8], eax
add esi, 0xffff
inc edi
test si, si
jne 0x21be6
jmp 0x21ce1
push 3
pop ecx
cmp dword [ebx + 0x18], ecx
jae 0x21c28
mov dword [ebx + 0x14], ecx
jmp 0x21b57
push 2
pop edx
cmp byte [ebx + 0x1c], dl
jae 0x21cda
cmp byte [ebx + 0x1d], 1
jae 0x21cda
mov dword [ebx + 0x14], edi
mov esi, dword [esi + 0x28]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], fcn.0001516c
mov dword [esi + 0x44], 0x14008
mov dword [esi + 0x48], 0x14018
lea ecx, [esi + 0x98]
xor eax, eax
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov al, byte [ecx]
and al, 0xc8
or al, 8
mov byte [ecx], al
mov byte [ecx + 1], 0xa
test byte [ebx + 0x1e], 1
jne 0x21c7f
or byte [ecx + 2], 1
test byte [ebx + 0x1e], dl
je 0x21c88
or byte [ecx + 2], 4
mov al, byte [ebx + 0x1c]
mov edi, dword [ebp + 0xc]
mov byte [esi + 0xaa], al
mov cl, byte [ebx + 0x1d]
and byte [esi + 0xac], 0
push 0
lea eax, [esi + 0xab]
mov byte [eax], cl
push edi
movzx eax, cl
push 0
push eax
xor eax, eax
mov al, byte [esi + 0xaa]
push eax
push dword [ebp + 8]
call fcn.00014d42
cmp al, 1
mov byte [ebp - 1], al
jne 0x21b48
push edi
push dword [ebp + 8]
call dword [esi + 0x40]
mov al, byte [edi + 3]
jmp 0x219c3
mov byte [ebp - 1], 1
mov dword [ebx + 0x14], edx
mov al, byte [ebp - 1]
mov ecx, dword [ebp + 0xc]
pop edi
pop esi
mov byte [ecx + 3], al
pop ebx
leave
ret 8