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

Disassembly:
sub esp, 0x7c
mov eax, dword [0x10089014]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
mov ebx, dword [esp + 0x90]
mov ecx, ebx
push ebp
mov ebp, dword [esp + 0x90]
mov eax, ebx
shr ecx, 6
shr eax, 7
and ecx, 0xffffff01
push edi
mov edi, dword [esp + 0x8c]
and eax, 0xffffff01
mov dword [esp + 0x10], 9
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], eax
mov byte [esp + 0x20], 0
mov byte [esp + 0x24], 0
mov byte [esp + 0xf], 0
test edi, edi
jne 0x1005d9d3
lea eax, [edi + 1]
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.10012fae
add esp, 0x7c
ret
test ebp, ebp
jne 0x1005d9ec
pop edi
lea eax, [ebp + 2]
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.10012fae
add esp, 0x7c
ret
mov eax, dword [esp + 0x90]
mov dword [ebp], 0
push esi
cmp eax, 0xa
ja case.default.0x1005da04
jmp dword [eax*4 + 0x1005e150]
mov esi, dword [edi]
mov dword [esp + 0x14], 0xa
mov byte [esp + 0x1c], 0
test ebx, 0x8000
je 0x1005da9c
cmp byte [edi + 0x2c], 0
je 0x1005da9c
pop esi
pop edi
pop ebp
mov eax, 0xa
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.10012fae
add esp, 0x7c
ret
mov esi, dword [edi + 4]
mov dword [esp + 0x14], 0xb
jmp 0x1005da9c
mov esi, dword [edi + 8]
mov dword [esp + 0x14], 0xc
jmp 0x1005da9c
mov esi, dword [edi + 0xc]
mov dword [esp + 0x14], 0xd
jmp 0x1005da9c
mov esi, dword [edi + 0x10]
mov edx, ebx
shr edx, 0xc
mov eax, ebx
and edx, 0xffffff01
shr eax, 0xd
and eax, 0xffffff01
mov dword [esp + 0x14], 0xe
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
jmp 0x1005da9c
mov esi, dword [edi + 0x14]
mov dword [esp + 0x14], 0x12
test esi, esi
jne 0x1005db9e
mov eax, dword [esp + 0x14]
pop esi
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.10012fae
add esp, 0x7c
ret
mov esi, dword [edi + 0x18]
mov dword [esp + 0x14], 0xf
mov byte [esp + 0x1c], 0
test esi, esi
jne 0x1005db07
test bl, 1
je case.default.0x1005da04
mov eax, dword [edi]
test eax, eax
je case.default.0x1005da04
push eax
call fcn.1002a110
add esp, 4
test eax, eax
je case.default.0x1005da04
push dword [eax + 0x44]
lea eax, [esp + 0x54]
push 0x100803a0
push 7
push eax
call fcn.10039010
add esp, 0x10
lea esi, [esp + 0x50]
jmp 0x1005db9e
mov eax, dword [edi]
test eax, eax
je 0x1005db9e
push eax
call fcn.1002a110
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x1005db9e
movzx eax, word [edi + 0x28]
cmp dword [ecx + 0x44], eax
jne 0x1005db9e
test bl, 2
je 0x1005db9e
jmp case.default.0x1005da04
mov esi, dword [edi + 0x1c]
test esi, esi
jne 0x1005db9e
mov esi, 0x10076c2c
jmp 0x1005db9e
mov esi, dword [edi + 0x20]
mov dword [esp + 0x14], 0x10
mov byte [esp + 0x13], cl
test esi, esi
je case.default.0x1005da04
cmp byte [esi], 0
jne 0x1005db9e
test dword [esp + 0x9c], 0x4000
jne 0x1005db9e
jmp case.default.0x1005da04
mov esi, dword [edi + 0x24]
mov dword [esp + 0x14], 0x11
test esi, esi
jne 0x1005db9e
cmp byte [edi + 0x2b], 0
je case.default.0x1005da04
test dword [esp + 0x9c], 0x4000
je case.default.0x1005da04
mov esi, 0x10076d92
mov ebx, esi
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x1005dba3
sub ebx, ecx
push ebx
push esi
call fcn.1002df20
add esp, 8
mov dword [ebp], eax
test eax, eax
je 0x1005df32
cmp byte [esp + 0x13], 0
je 0x1005dbde
test ebx, ebx
je 0x1005dbde
mov ecx, ebx
nop
cmp byte [eax], 0x2b
jne 0x1005dbd8
mov byte [eax], 0x20
inc eax
sub ecx, 1
jne 0x1005dbd0
cmp byte [esp + 0x1c], 0
je 0x1005dc37
push 3
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
push 0
push dword [ebp]
call fcn.10038c50
push dword [ebp]
mov esi, eax
call dword [0x100895a8]
add esp, 0x18
test esi, esi
je 0x1005dc2c
pop esi
pop edi
mov dword [ebp], 0
mov eax, 6
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.10012fae
add esp, 0x7c
ret
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov dword [ebp], eax
cmp byte [esp + 0x2c], 0
je 0x1005dca5
lea eax, [esp + 0x40]
push 0x7a1200
push eax
call fcn.10021760
cmp dword [esp + 0x9c], 8
sete al
movzx eax, al
push eax
push 1
push ebx
push dword [ebp]
lea eax, [esp + 0x58]
push eax
call fcn.1005fbb0
add esp, 0x1c
test eax, eax
jne 0x1005daa8
push dword [ebp]
call dword [0x100895a8]
lea eax, [esp + 0x44]
push eax
call fcn.10021820
add esp, 8
mov dword [ebp], eax
xor eax, eax
pop esi
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.10012fae
add esp, 0x7c
ret
cmp byte [esp + 0x24], 0
je 0x1005dcca
push dword [edi + 0x10]
call fcn.10060a30
add esp, 4
test al, al
jne 0x1005dd24
lea eax, [esp + 0x20]
push eax
push dword [ebp]
call fcn.100606e0
jmp 0x1005dd04
cmp byte [esp + 0x28], 0
je 0x1005dd24
push dword [edi + 0x10]
call fcn.10060a30
add esp, 4
test al, al
je 0x1005dd24
push 4
push dword [edi + 0x10]
push str.xn__
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x1005dd24
lea eax, [esp + 0x20]
push eax
push dword [ebp]
call fcn.10060800
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x1005dfae
push dword [ebp]
call dword [0x100895a8]
mov eax, dword [esp + 0x24]
add esp, 4
mov dword [ebp], eax
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.10012fae
add esp, 0x7c
ret
mov eax, dword [edi + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x18]
mov dword [esp + 0x28], eax
mov eax, ebx
and eax, 0x4000
mov dword [esp + 0x14], 0
cmp dword [edi + 0x24], 0
jne 0x1005dd6d
cmp byte [edi + 0x2b], 0
je 0x1005dd66
test eax, eax
jne 0x1005dd6d
mov byte [esp + 0x13], 0
jmp 0x1005dd72
mov byte [esp + 0x13], 1
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x1005dd7e
cmp byte [ecx], 0
jne 0x1005dd88
cmp byte [edi + 0x2a], 0
je 0x1005dd8f
test eax, eax
je 0x1005dd8f
mov byte [esp + 0x1b], 1
jmp 0x1005dd94
mov byte [esp + 0x1b], 0
mov eax, ebx
shr eax, 0xc
and eax, 0xffffff01
mov dword [esp + 0x20], eax
mov eax, ebx
shr eax, 0xd
and eax, 0xffffff01
mov dword [esp + 0x30], eax
mov eax, dword [edi]
test eax, eax
je 0x1005ddfd
push eax
push str.file
call fcn.100362c0
add esp, 8
test eax, eax
je 0x1005ddfd
mov eax, dword [edi + 0x24]
mov ebx, 0x10076d92
test eax, eax
mov ecx, ebx
cmovne ecx, eax
cmp byte [esp + 0x13], 0
push ecx
mov eax, 0x100803a4
cmove eax, ebx
push eax
push dword [edi + 0x1c]
push str.file:___s_s_s
call fcn.10038f70
add esp, 0x10
mov esi, eax
jmp 0x1005e107
cmp dword [edi + 0x10], 0
jne 0x1005de1b
pop esi
pop edi
pop ebp
mov eax, 0xe
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.10012fae
add esp, 0x7c
ret
mov eax, dword [edi]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x1005de37
test bl, 4
je 0x1005da28
mov eax, 0x10077f24
mov dword [esp + 0x24], eax
push eax
call fcn.1002a110
mov ecx, dword [esp + 0x2c]
add esp, 4
mov esi, eax
test ecx, ecx
jne 0x1005de7e
test bl, 1
je 0x1005de74
test esi, esi
je 0x1005deaa
push dword [esi + 0x44]
lea eax, [esp + 0x54]
push 0x100803a0
push 7
push eax
call fcn.10039010
lea eax, [esp + 0x60]
add esp, 0x10
mov dword [esp + 0x28], eax
jmp 0x1005de9a
mov dword [esp + 0x28], ecx
test esi, esi
je 0x1005deaa
jmp 0x1005de9a
test esi, esi
je 0x1005deaa
movzx eax, word [edi + 0x28]
cmp dword [esi + 0x44], eax
jne 0x1005de9a
test bl, 2
mov eax, 0
cmovne ecx, eax
mov dword [esp + 0x28], ecx
mov eax, dword [esi + 0x50]
and eax, 0x400
neg eax
sbb eax, eax
and dword [esp + 0x1c], eax
mov esi, dword [edi + 0x10]
cmp byte [esi], 0x5b
jne 0x1005df10
cmp dword [edi + 0x14], 0
je 0x1005dfd1
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x1005dec0
lea eax, [esp + 0x40]
sub esi, ecx
push 0x7a1200
push eax
call fcn.10021760
push dword [edi + 0x14]
lea eax, [esi - 1]
push dword [edi + 0x10]
push eax
lea eax, [esp + 0x54]
push str._.s__25_s_
push eax
call fcn.100216f0
add esp, 0x1c
test eax, eax
jne 0x1005df32
lea eax, [esp + 0x40]
push eax
call fcn.10021820
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
jmp 0x1005dfd5
cmp byte [esp + 0x2c], 0
je 0x1005df4a
push 0
push esi
push 0
call fcn.10038d70
mov esi, eax
add esp, 0xc
mov dword [esp + 0x14], esi
test esi, esi
jne 0x1005dfd5
pop esi
pop edi
pop ebp
mov eax, 7
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.10012fae
add esp, 0x7c
ret
cmp byte [esp + 0x20], 0
je 0x1005df6d
push esi
call fcn.10060a30
add esp, 4
test al, al
jne 0x1005dfd1
lea eax, [esp + 0x14]
push eax
push dword [edi + 0x10]
call fcn.100606e0
jmp 0x1005dfa5
cmp byte [esp + 0x30], 0
je 0x1005dfd1
push esi
call fcn.10060a30
add esp, 4
test al, al
je 0x1005dfd1
push 4
push dword [edi + 0x10]
push str.xn__
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x1005dfd1
lea eax, [esp + 0x14]
push eax
push dword [edi + 0x10]
call fcn.10060800
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x1005dfd1
pop esi
pop edi
cmp ecx, 0x1b
mov edx, 7
mov eax, 0x15
pop ebp
cmove eax, edx
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.10012fae
add esp, 0x7c
ret
mov esi, dword [esp + 0x14]
test ebx, 0x8000
je 0x1005dfea
cmp byte [edi + 0x2c], 0
je 0x1005dfea
mov byte [esp + 0x58], 0
jmp 0x1005e006
push dword [esp + 0x24]
lea eax, [esp + 0x5c]
push str._s:__
push 0x2d
push eax
call fcn.10039010
mov esi, dword [esp + 0x24]
add esp, 0x10
mov eax, dword [edi + 0x24]
mov ebx, 0x10076d92
test eax, eax
mov ecx, ebx
cmovne ecx, eax
mov eax, dword [edi + 0x20]
mov dword [esp + 0x38], ecx
test eax, eax
mov ecx, ebx
cmovne ecx, eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x3c], ecx
test eax, eax
mov ecx, 0x10076c2c
cmovne ecx, eax
mov dword [esp + 0x34], ecx
test esi, esi
jne 0x1005e03f
mov esi, dword [edi + 0x10]
cmp dword [edi + 4], 0
jne 0x1005e12a
cmp dword [edi + 8], 0
jne 0x1005e12a
cmp dword [esp + 0x1c], 0
jne 0x1005e12a
mov eax, dword [edi + 8]
mov dword [esp + 0x24], 0x10076d92
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], 0x10076d92
push dword [esp + 0x38]
mov eax, dword [edi + 4]
mov edx, ebx
mov edi, dword [esp + 0x2c]
test eax, eax
mov ecx, 0x10076d28
cmovne edx, eax
cmp byte [esp + 0x17], 0
mov eax, 0x100803a4
cmove eax, ebx
cmp byte [esp + 0x1f], 0
push eax
push dword [esp + 0x44]
mov eax, 0x100803d4
cmove eax, ebx
test edi, edi
push eax
push dword [esp + 0x44]
mov eax, ebx
cmovne eax, edi
push eax
mov eax, ecx
cmove eax, ebx
push eax
push esi
push dword [esp + 0x44]
mov esi, dword [esp + 0x40]
mov eax, ebx
test esi, esi
cmovne eax, esi
push eax
mov eax, 0x100803d8
cmove eax, ebx
cmp dword [esp + 0x48], 0
push eax
push dword [esp + 0x58]
cmove ecx, ebx
lea eax, [esp + 0x88]
push ecx
push edx
push eax
push str._s_s_s_s_s_s_s_s_s_s_s_s_s_s_s
call fcn.10038f70
push dword [esp + 0x54]
mov esi, eax
call dword [0x100895a8]
add esp, 0x44
test esi, esi
je 0x1005df32
mov ecx, dword [esp + 0x88]
xor eax, eax
mov dword [ebp], esi
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.10012fae
add esp, 0x7c
ret
mov ecx, dword [edi + 8]
mov eax, 0x1007af60
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x1005e06d
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], eax
jmp 0x1005e075