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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10070413
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
push dword [ebp + 0x1c]
call fcn.1002396d
mov esi, eax
lea eax, [esp + 0x38]
pop ecx
push eax
mov ecx, esi
call fcn.100226cf
and dword [esp + 0x74], 0
cmp dword [esp + 0x44], 0
jne 0x100215d6
mov byte [esp + 0xe], 0
jmp 0x100215e1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
mov byte [esp + 0xe], al
push dword [ebp + 0x1c]
call fcn.1002341e
pop ecx
lea ecx, [esp + 0x4c]
push ecx
mov edx, dword [eax]
mov ecx, eax
push 0x10007fba
push 0x10007fa0
call dword [edx + 0x1c]
push dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov ecx, esi
mov edi, dword [ebp + 0xc]
mov ebx, edi
call fcn.10023fbf
test al, al
jne 0x10021653
cmp byte [esi + 4], al
jne 0x10021622
mov ecx, esi
call fcn.1002319e
mov al, byte [esi + 5]
cmp al, byte [esp + 0x63]
jne 0x10021630
mov byte [edi], 0x2b
jmp 0x10021649
cmp byte [esi + 4], 0
jne 0x1002163d
mov ecx, esi
call fcn.1002319e
mov al, byte [esi + 5]
cmp al, byte [esp + 0x62]
jne 0x10021653
mov byte [edi], 0x2d
mov ecx, esi
lea ebx, [edi + 1]
call fcn.1002317c
mov eax, dword [ebp + 0x18]
and eax, 0xe00
push 0xa
mov edi, eax
neg edi
pop ecx
sbb edi, edi
mov dword [esp + 0x18], ecx
and edi, ecx
cmp eax, 0x800
push 0x10
pop ecx
cmove edi, ecx
cmp eax, 0x400
push 8
pop ecx
push dword [ebp + 0x14]
cmove edi, ecx
xor al, al
mov ecx, esi
mov dword [esp + 0x18], edi
mov byte [esp + 0x11], al
mov byte [esp + 0x14], al
mov byte [esp + 0x13], al
call fcn.10023fbf
test al, al
jne 0x10021738
cmp byte [esi + 4], al
jne 0x100216b0
mov ecx, esi
call fcn.1002319e
mov al, byte [esi + 5]
cmp al, byte [esp + 0x4c]
jne 0x10021738
mov al, 1
mov ecx, esi
mov byte [esp + 0xd], al
mov byte [esp + 0x10], al
call fcn.1002317c
push dword [ebp + 0x14]
mov ecx, esi
call fcn.10023fbf
test al, al
jne 0x10021729
cmp byte [esi + 4], al
jne 0x100216e4
mov ecx, esi
call fcn.1002319e
mov al, byte [esi + 5]
cmp al, byte [esp + 0x65]
je 0x10021703
cmp byte [esi + 4], 0
jne 0x100216fa
mov ecx, esi
call fcn.1002319e
mov al, byte [esi + 5]
cmp al, byte [esp + 0x64]
jne 0x10021729
test edi, edi
je 0x1002170c
cmp edi, 0x10
jne 0x10021729
push 0x10
xor al, al
mov ecx, esi
pop edi
mov dword [esp + 0x14], edi
mov byte [esp + 0xd], al
mov byte [esp + 0x10], al
call fcn.1002317c
push 8
pop ecx
jmp 0x10021744
push 8
pop ecx
test edi, edi
jne 0x1002173f
mov edi, ecx
mov dword [esp + 0x14], edi
jmp 0x1002173b
push 8
pop ecx
test edi, edi
je 0x10021750
cmp edi, 0xa
je 0x10021750
push 0x16
cmp edi, ecx
pop eax
cmove eax, ecx
mov dword [esp + 0x18], eax
push dword [esp + 0x10]
and dword [esp + 0x30], 0
lea ecx, [esp + 0x20]
push 1
mov dword [esp + 0x38], 0xf
mov byte [esp + 0x24], 0
call fcn.10022769
mov eax, dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 0x14]
add eax, 0x1f
mov byte [esp + 0x78], 1
xor edi, edi
mov dword [esp + 0x14], eax
call fcn.10023fbf
test al, al
jne 0x10021885
cmp byte [esi + 4], 0
jne 0x100217a1
mov ecx, esi
call fcn.1002319e
movzx eax, byte [esi + 5]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.10023d95
pop ecx
pop ecx
cmp eax, dword [esp + 0x18]
jae 0x10021803
cmp byte [esp + 0xf], 0
mov al, byte [eax + 0x10007fa0]
mov byte [ebx], al
jne 0x100217cb
cmp al, 0x30
je 0x100217d7
cmp ebx, dword [esp + 0x10]
jae 0x100217d7
inc ebx
mov byte [esp + 0xf], 1
cmp dword [esp + 0x30], 0x10
lea eax, [esp + 0x1c]
mov byte [esp + 0xd], 1
cmovae eax, dword [esp + 0x1c]
cmp byte [eax + edi], 0x7f
je 0x10021849
cmp dword [esp + 0x30], 0x10
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
inc byte [eax + edi]
jmp 0x10021849
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x1c]
cmp edx, 0x10
cmovae eax, dword [esp + 0x1c]
cmp byte [eax + edi], 0
je 0x10021866
mov al, byte [esp + 0xe]
test al, al
je 0x10021866
cmp byte [esi + 4], 0
jne 0x10021836
mov ecx, esi
call fcn.1002319e
mov edx, dword [esp + 0x30]
mov al, byte [esp + 0xe]
cmp byte [esi + 5], al
jne 0x10021866
push 0
push 1
lea ecx, [esp + 0x24]
call fcn.10022708
inc edi
mov ecx, esi
call fcn.1002317c
push dword [ebp + 0x14]
mov ecx, esi
call fcn.10023fbf
test al, al
je 0x10021794
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x1c]
test edi, edi
je 0x1002188d
cmp edx, 0x10
lea eax, [esp + 0x1c]
cmovae eax, esi
cmp byte [eax + edi], 0
jle 0x10021881
inc edi
jmp 0x1002188d
xor al, al
jmp 0x10021891
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x1c]
mov al, byte [esp + 0xd]
cmp dword [esp + 0x48], 0x10
lea ecx, [esp + 0x34]
cmovae ecx, dword [esp + 0x34]
test al, al
je 0x100218f2
test edi, edi
je 0x100218e5
cmp byte [ecx], 0x7f
je 0x100218e5
dec edi
je 0x100218c4
cmp edx, 0x10
lea eax, [esp + 0x1c]
mov dl, byte [ecx]
cmovae eax, esi
cmp dl, byte [eax + edi]
mov edx, dword [esp + 0x30]
jne 0x100218f2
test edi, edi
jne 0x100218dc
cmp edx, 0x10
lea eax, [esp + 0x1c]
mov dl, byte [ecx]
cmovae eax, esi
cmp dl, byte [eax]
mov edx, dword [esp + 0x30]
jl 0x100218f2
cmp byte [ecx + 1], 0
jle 0x100218a3
inc ecx
jmp 0x100218a3
cmp byte [esp + 0xf], 0
jne 0x100218f5
mov byte [ebx], 0x30
inc ebx
jmp 0x100218f5
mov ebx, dword [ebp + 0xc]
push 0
push 1
lea ecx, [esp + 0x24]
mov byte [ebx], 0
call fcn.1001f810
push 0
push 1
lea ecx, [esp + 0x3c]
call fcn.1001f810
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret