Function at 0x10058c60
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 + 0x40]
mov edx, dword [eax + 0x48]
push ebx
push ebp
mov ebp, dword [eax + 4]
push esi
mov esi, dword [eax + 0x44]
push edi
mov edi, dword [eax + 0x14]
mov eax, dword [eax + 0x4c]
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 0x10058caa
add dword [esp + 0x3c], 0xff9c
mov eax, dword [esp + 0x38]
xor dl, dl
test eax, eax
mov byte [esp + 0x13], dl
jl 0x10059048
lea esp, [esp]
mov ebx, dword [esp + 0x3c]
cmp bx, 4
mov cl, byte [eax + esi]
jne 0x10058d5c
test dl, dl
jne 0x10058de5
cmp cl, 5
jne 0x10058da8
mov ecx, dword [esp + 0x18]
movzx ecx, word [ecx + eax*2]
lea ecx, [ecx + ecx*4]
shl ecx, 2
mov edx, dword [ecx + ebp + 8]
cmp byte [edx + edi + 8], 0x46
jne 0x10058da8
mov ecx, edx
mov cl, byte [ecx + edi + 6]
xor edx, edx
mov dl, cl
and edx, 0x80
je 0x10058d1c
test cl, 1
je 0x10058da8
jmp 0x10058d24
test edx, edx
jne 0x10058da8
mov dl, byte [eax + esi + 1]
cmp dl, 2
lea ecx, [eax + 1]
jne 0x10058d3a
cmp byte [ecx + esi + 1], 1
jne 0x10058d3a
add ecx, 2
mov ebx, dword [esp + 0x38]
cmp ecx, ebx
jge 0x10058da8
lea edx, [ecx + 2]
cmp byte [edx + esi - 2], 1
jne 0x10058d54
cmp ebx, edx
je 0x10059035
inc ecx
inc edx
cmp ecx, ebx
jl 0x10058d45
jmp 0x10058da8
cmp bx, 3
jne 0x10058da4
test dl, dl
jne 0x10058de5
cmp cl, 5
jne 0x10058da8
mov ecx, dword [esp + 0x18]
movzx ecx, word [ecx + eax*2]
lea edx, [ecx + ecx*4]
mov ecx, dword [ebp + edx*4 + 8]
mov dl, byte [ecx + edi + 8]
add ecx, edi
cmp dl, 0x46
jne 0x10058da8
mov edx, dword [esp + 0x38]
sub edx, eax
cmp edx, 4
jge 0x10058da8
mov dl, byte [ecx + 6]
test dl, dl
js 0x10058da8
cmp byte [eax + esi + 1], 1
je 0x10059035
jmp 0x10058da8
test dl, dl
jne 0x10058de5
mov ecx, dword [esp + 0x24]
cmp byte [eax + ecx], 0x2c
je 0x10058de5
cmp byte [eax + esi], 5
jne 0x10058de5
mov edx, dword [esp + 0x18]
movzx ecx, word [edx + eax*2]
lea ecx, [ecx + ecx*4]
mov edx, dword [ebp + ecx*4 + 8]
mov cl, byte [edx + edi + 8]
add edx, edi
cmp cl, 0x46
je 0x10058de5
cmp cl, 0x50
jne 0x10059035
cmp byte [edx + 0xa], 0x53
je 0x10059035
mov edx, dword [esp + 0x24]
mov bl, byte [eax + edx]
cmp bl, 0x29
jne 0x10058e0d
lea ecx, [eax - 1]
test ecx, ecx
jl 0x10058e0d
jmp 0x10058e00
cmp byte [ecx + edx], 0x28
je 0x10058ed7
dec ecx
jns 0x10058e00
mov ecx, dword [esp + 0x38]
inc ecx
cmp eax, ecx
jge 0x10058f4c
cmp byte [eax + esi], 6
je 0x10058e4b
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + eax*4]
mov edx, dword [0x100bba90]
cmp ecx, dword [edx + 0xbc]
je 0x10058e4b
cmp ecx, dword [edx + 0x10c]
je 0x10058e4b
cmp bl, 0x3b
je 0x10058e4b
cmp bl, 0x3a
jne 0x10058f4c
cmp word [esp + 0x3c], 3
mov edx, dword [esp + 0x20]
mov edx, dword [edx + eax*4]
jne 0x10058e72
cmp byte [esp + 0x13], 1
jne 0x10058e72
cmp byte [esp + 0x34], 1
jne 0x10058e72
cmp eax, 1
jg 0x10058e72
mov byte [esp + 0x34], 0
mov ecx, dword [0x100bba90]
cmp edx, dword [ecx + 0x6c]
je 0x10058e82
cmp edx, dword [ecx + 0x78]
jne 0x10058ee2
test eax, eax
jle 0x10058ee2
cmp byte [eax + esi - 1], 3
jne 0x10058ee2
cmp byte [eax + esi + 1], 3
jne 0x10058ee2
mov esi, dword [esp + 0x18]
movzx ecx, word [esi + eax*2 - 2]
lea ecx, [ecx + ecx*4]
mov ecx, dword [ebp + ecx*4 + 8]
mov dword [esp + 0x2c], ecx
movzx ecx, word [esi + eax*2 + 2]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x2c], eax
mov al, byte [esi + edi + 3]
mov esi, dword [esp + 0x14]
lea ecx, [ecx + ecx*4]
mov ecx, dword [ebp + ecx*4 + 8]
xor al, byte [ecx + edi + 3]
test al, 0xc
mov eax, dword [esp + 0x2c]
jne 0x10058ee2
mov byte [esp + 0x34], 0
jmp 0x10058f4c
mov dl, byte [esp + 0x13]
mov eax, ecx
jmp 0x10058cc0
cmp word [esp + 0x3c], 4
jne 0x10058f3a
cmp byte [eax + esi], 6
jne 0x10058f3a
mov ecx, dword [esp + 0x18]
movzx ecx, word [ecx + eax*2]
lea ecx, [ecx + ecx*4]
mov ecx, dword [ebp + ecx*4 + 8]
cmp byte [ecx + edi + 3], 0x63
jne 0x10058f3a
test eax, eax
jle 0x10058f15
cmp byte [eax + esi - 1], 4
je 0x10058ffe
cmp eax, 1
jle 0x10059041
mov dl, byte [eax + esi - 1]
mov cl, byte [eax + esi + 1]
cmp dl, cl
je 0x10058f4c
cmp byte [eax + esi - 2], cl
jne 0x10059041
cmp dl, byte [eax + esi + 2]
jmp 0x10058f46
mov ecx, dword [0x100bba90]
cmp edx, dword [ecx + 0xe4]
jne 0x10059041
cmp bl, 0x2c
jne 0x10058ff2
lea edx, [eax - 1]
test edx, edx
mov byte [esp + 0x13], 1
mov byte [esp + 0x34], 0
jl 0x10058ff2
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
lea esi, [edx + ecx]
sub edi, ecx
mov cl, byte [esi + edi]
cmp cl, 6
mov bl, byte [esi]
je 0x10058fab
cmp cl, 5
jne 0x10058fb0
mov ecx, dword [esp + 0x18]
movzx ecx, word [ecx + edx*2]
lea ecx, [ecx + ecx*4]
mov ecx, dword [ebp + ecx*4 + 8]
mov ebp, dword [esp + 0x1c]
mov cl, byte [ecx + ebp + 8]
cmp cl, 0x46
mov ebp, dword [esp + 0x28]
je 0x10058fb0
cmp cl, 0x50
je 0x10058fb0
mov byte [esp + 0x34], 1
cmp bl, 0x2c
je 0x10058fc7
cmp bl, 0x3b
je 0x10058fea
cmp bl, 0x3a
je 0x10058fea
dec edx
dec esi
test edx, edx
jge 0x10058f77
jmp 0x10058fea
cmp byte [esp + 0x34], 1
je 0x10058fd7
mov ecx, eax
sub ecx, edx
cmp ecx, 3
jge 0x10058fea
sub eax, edx
cmp eax, 0xc
jge 0x10058fe3
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 0x10059041
mov dl, byte [esp + 0x13]
jmp 0x10058cc0
mov ecx, dword [esp + 0x38]
cmp ecx, eax
jle 0x10059035
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 0x1005902c
mov edx, dword [esp + 0x20]
mov edx, dword [edx + ecx*4]
cmp edx, dword [edi]
jne 0x10059041
dec ecx
dec esi
sub edi, 4
cmp ecx, eax
jg 0x10059016
pop edi
pop esi
pop ebp
mov ax, 0xa
pop ebx
add esp, 0x20
ret
cmp byte [esp + 0x34], 1
je 0x10059035
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