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

Disassembly:
sub esp, 0x20
cmp word [esp + 0x2c], 0x64
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x30]
mov edx, dword [eax + 0x38]
push ebx
push ebp
mov ebp, dword [eax + 4]
push esi
mov esi, dword [eax + 0x34]
push edi
mov edi, dword [eax + 0x14]
mov eax, dword [eax + 0x3c]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], eax
mov byte [esp + 0x34], 0
jbe 0x1001b8aa
add dword [esp + 0x3c], 0xff9c
mov eax, dword [esp + 0x38]
xor dl, dl
test eax, eax
mov byte [esp + 0x13], dl
jl 0x1001bc62
lea esp, [esp]
mov ebx, dword [esp + 0x3c]
cmp bx, 4
mov cl, byte [eax + esi]
jne 0x1001b967
test dl, dl
jne 0x1001b9f6
cmp cl, 5
jne 0x1001b9b8
mov ecx, dword [esp + 0x18]
movzx ecx, word [ecx + eax*2]
lea ecx, [ecx + ecx*2]
shl ecx, 2
movzx edx, word [ecx + ebp + 4]
cmp byte [edx + edi + 8], 0x46
jne 0x1001b9b8
movzx ecx, word [ecx + ebp + 4]
mov cl, byte [ecx + edi + 6]
xor edx, edx
mov dl, cl
and edx, 0x80
je 0x1001b920
test cl, 1
je 0x1001b9b8
jmp 0x1001b928
test edx, edx
jne 0x1001b9b8
mov dl, byte [eax + esi + 1]
cmp dl, 2
lea ecx, [eax + 1]
jne 0x1001b93e
cmp byte [ecx + esi + 1], 1
jne 0x1001b93e
add ecx, 2
mov ebx, dword [esp + 0x38]
cmp ecx, ebx
jge 0x1001b9b8
lea edx, [ecx + 2]
lea esp, [esp]
cmp byte [edx + esi - 2], 1
jne 0x1001b95f
cmp ebx, edx
je 0x1001bc4f
inc ecx
inc edx
cmp ecx, ebx
jl 0x1001b950
jmp 0x1001b9b8
cmp bx, 3
jne 0x1001b9b4
test dl, dl
jne 0x1001b9f6
cmp cl, 5
jne 0x1001b9b8
mov ecx, dword [esp + 0x18]
movzx ecx, word [ecx + eax*2]
lea edx, [ecx + ecx*2]
movzx ecx, word [ebp + edx*4 + 4]
mov dl, byte [ecx + edi + 8]
add ecx, edi
cmp dl, 0x46
jne 0x1001b9b8
mov edx, dword [esp + 0x38]
sub edx, eax
cmp edx, 4
jge 0x1001b9b8
mov dl, byte [ecx + 6]
test dl, dl
js 0x1001b9b8
cmp byte [eax + esi + 1], 1
je 0x1001bc4f
jmp 0x1001b9b8
test dl, dl
jne 0x1001b9f6
mov ecx, dword [esp + 0x24]
cmp byte [eax + ecx], 0x2c
je 0x1001b9f6
cmp byte [eax + esi], 5
jne 0x1001b9f6
mov edx, dword [esp + 0x18]
movzx ecx, word [edx + eax*2]
lea ecx, [ecx + ecx*2]
movzx edx, word [ebp + ecx*4 + 4]
mov cl, byte [edx + edi + 8]
add edx, edi
cmp cl, 0x46
je 0x1001b9f6
cmp cl, 0x50
jne 0x1001bc4f
cmp byte [edx + 0xa], 0x53
je 0x1001bc4f
mov edx, dword [esp + 0x24]
mov bl, byte [eax + edx]
cmp bl, 0x29
jne 0x1001ba1d
lea ecx, [eax - 1]
test ecx, ecx
jl 0x1001ba1d
lea esp, [esp]
cmp byte [ecx + edx], 0x28
je 0x1001bae9
dec ecx
jns 0x1001ba10
mov ecx, dword [esp + 0x38]
inc ecx
cmp eax, ecx
jge 0x1001bb5f
cmp byte [eax + esi], 6
je 0x1001ba5b
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + eax*4]
mov edx, dword [0x1006be90]
cmp ecx, dword [edx + 0xbc]
je 0x1001ba5b
cmp ecx, dword [edx + 0x10c]
je 0x1001ba5b
cmp bl, 0x3b
je 0x1001ba5b
cmp bl, 0x3a
jne 0x1001bb5f
cmp word [esp + 0x3c], 3
mov edx, dword [esp + 0x20]
mov edx, dword [edx + eax*4]
jne 0x1001ba82
cmp byte [esp + 0x13], 1
jne 0x1001ba82
cmp byte [esp + 0x34], 1
jne 0x1001ba82
cmp eax, 1
jg 0x1001ba82
mov byte [esp + 0x34], 0
mov ecx, dword [0x1006be90]
cmp edx, dword [ecx + 0x6c]
je 0x1001ba92
cmp edx, dword [ecx + 0x78]
jne 0x1001baf4
test eax, eax
jle 0x1001baf4
cmp byte [eax + esi - 1], 3
jne 0x1001baf4
cmp byte [eax + esi + 1], 3
jne 0x1001baf4
mov esi, dword [esp + 0x18]
movzx ecx, word [esi + eax*2 - 2]
lea ecx, [ecx + ecx*2]
movzx ecx, word [ebp + ecx*4 + 4]
mov dword [esp + 0x2c], ecx
movzx ecx, word [esi + eax*2 + 2]
mov esi, dword [esp + 0x2c]
lea ecx, [ecx + ecx*2]
movzx ecx, word [ebp + ecx*4 + 4]
mov dword [esp + 0x2c], eax
mov al, byte [esi + edi + 3]
xor al, byte [ecx + edi + 3]
mov esi, dword [esp + 0x14]
test al, 0xc
mov eax, dword [esp + 0x2c]
jne 0x1001baf4
mov byte [esp + 0x34], 0
jmp 0x1001bb5f
mov dl, byte [esp + 0x13]
mov eax, ecx
jmp 0x1001b8c0
cmp word [esp + 0x3c], 4
jne 0x1001bb4d
cmp byte [eax + esi], 6
jne 0x1001bb4d
mov ecx, dword [esp + 0x18]
movzx ecx, word [ecx + eax*2]
lea ecx, [ecx + ecx*2]
movzx ecx, word [ebp + ecx*4 + 4]
cmp byte [ecx + edi + 3], 0x63
jne 0x1001bb4d
test eax, eax
jle 0x1001bb28
cmp byte [eax + esi - 1], 4
je 0x1001bc18
cmp eax, 1
jle 0x1001bc5b
mov dl, byte [eax + esi - 1]
mov cl, byte [eax + esi + 1]
cmp dl, cl
je 0x1001bb5f
cmp byte [eax + esi - 2], cl
jne 0x1001bc5b
cmp dl, byte [eax + esi + 2]
jmp 0x1001bb59
mov ecx, dword [0x1006be90]
cmp edx, dword [ecx + 0xe4]
jne 0x1001bc5b
cmp bl, 0x2c
jne 0x1001bc0c
lea edx, [eax - 1]
test edx, edx
mov byte [esp + 0x13], 1
mov byte [esp + 0x34], 0
jl 0x1001bc0c
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
lea esi, [edx + ecx]
sub edi, ecx
lea ebx, [ebx]
mov cl, byte [edi + esi]
cmp cl, 6
mov bl, byte [esi]
je 0x1001bbc5
cmp cl, 5
jne 0x1001bbca
mov ecx, dword [esp + 0x18]
movzx ecx, word [ecx + edx*2]
lea ecx, [ecx + ecx*2]
movzx ecx, word [ebp + ecx*4 + 4]
mov ebp, dword [esp + 0x1c]
mov cl, byte [ecx + ebp + 8]
cmp cl, 0x46
mov ebp, dword [esp + 0x28]
je 0x1001bbca
cmp cl, 0x50
je 0x1001bbca
mov byte [esp + 0x34], 1
cmp bl, 0x2c
je 0x1001bbe1
cmp bl, 0x3b
je 0x1001bc04
cmp bl, 0x3a
je 0x1001bc04
dec edx
dec esi
test edx, edx
jge 0x1001bb90
jmp 0x1001bc04
cmp byte [esp + 0x34], 1
je 0x1001bbf1
mov ecx, eax
sub ecx, edx
cmp ecx, 3
jge 0x1001bc04
sub eax, edx
cmp eax, 0xc
jge 0x1001bbfd
mov byte [esp + 0x34], 0
mov eax, edx
mov byte [esp + 0x13], 0
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
dec eax
js 0x1001bc5b
mov dl, byte [esp + 0x13]
jmp 0x1001b8c0
mov ecx, dword [esp + 0x38]
cmp ecx, eax
jle 0x1001bc4f
mov edx, dword [esp + 0x14]
lea esi, [eax + edx - 2]
mov edx, dword [esp + 0x20]
lea edi, [edx + eax*4 - 8]
mov edx, dword [esp + 0x14]
mov dl, byte [ecx + edx]
cmp dl, byte [esi]
je 0x1001bc46
mov edx, dword [esp + 0x20]
mov edx, dword [edx + ecx*4]
cmp edx, dword [edi]
jne 0x1001bc5b
dec ecx
dec esi
sub edi, 4
cmp ecx, eax
jg 0x1001bc30
pop edi
pop esi
pop ebp
mov ax, 0xa
pop ebx
add esp, 0x20
ret
cmp byte [esp + 0x34], 1
je 0x1001bc4f
xor ecx, ecx
test eax, eax
setne cl
pop edi
pop esi
pop ebp
pop ebx
dec ecx
and ecx, 5
mov ax, cx
add esp, 0x20
ret