Function at 0x1005b4c
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.01009710
mov eax, dword [0x1011040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, 0x2518
push edi
mov dword [ebp - 0x1014], eax
call fcn.0100a4de
mov esi, eax
test esi, esi
jne 0x1005ac6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.010096ed
leave
ret 4
push edi
push 0
push esi
call fcn.01009702
lea eax, [esi + 0x3c]
mov dword [esi + 4], eax
lea eax, [esi + 0x7c]
mov dword [esi + 0x10], eax
lea eax, [esi + 0x27e]
mov dword [esi + 0x1c], eax
mov eax, 0x81
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], eax
lea eax, [esi + 0x482]
mov dword [esi + 0x2c], eax
mov eax, 0x825
lea ecx, [esi + 0x380]
add esp, 0xc
mov dword [esi + 0x24], ecx
lea edi, [esi + 0x14cc]
mov dword [esi], 0x3c
mov dword [esi + 8], 0x20
mov dword [esi + 0x14], 0x101
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], eax
push dword [ebx + 0xc]
lea ecx, [ebp - 0x1024]
call fcn.0100474e
mov eax, dword [eax + 8]
push esi
push 0x10000000
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
lea ecx, [ebp - 0x1024]
mov dword [ebp - 0x1010], eax
call fcn.010047b4
cmp dword [ebp - 0x1010], 0
jne 0x1005b71
push esi
call fcn.0100a4d2
jmp 0x1005ab4
movzx eax, word [edi]
and dword [ebp - 0x100c], 0
test ax, ax
je 0x1005c7f
movzx eax, ax
mov edx, edi
cmp ax, 0x20
jne 0x1005b95
inc dword [ebp - 0x100c]
inc edx
inc edx
movzx ecx, word [edx]
movzx eax, cx
test cx, cx
jne 0x1005b89
cmp dword [ebp - 0x100c], 0
je 0x1005c7f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x100c]
lea eax, [eax + ecx*2]
cmp eax, 0x824
jbe 0x1005bda
push 0x1002008
push dword [0x101135c]
call fcn.0100a43e
pop ecx
pop ecx
jmp 0x1005b66
push 0x1002
lea eax, [ebp - 0x1008]
push 0
push eax
call fcn.01009702
movzx eax, word [edi]
add esp, 0xc
test ax, ax
je 0x1005c3d
movzx ecx, ax
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x100c], edi
cmp cx, 0x20
jne 0x1005c20
push 0x25
pop ecx
mov word [eax], cx
inc eax
push 0x32
inc eax
pop ecx
mov word [eax], cx
inc eax
push 0x30
inc eax
pop ecx
add dword [ebp - 0x100c], 2
mov word [eax], cx
mov ecx, dword [ebp - 0x100c]
movzx edx, word [ecx]
inc eax
inc eax
movzx ecx, dx
test dx, dx
jne 0x1005c07
push 0x900
push 0
push 0
lea eax, [ebp - 0x1008]
push eax
push 0x825
push edi
call fcn.01004f68
test eax, eax
jge 0x1005c7f
push eax
push 0x1001fd8
push dword [0x101135c]
call fcn.0100a43e
add esp, 0xc
xor edi, edi
push esi
call fcn.0100a4d2
mov eax, edi
jmp 0x1005ab6
mov dword [ebx + 0x1c], esi
mov eax, dword [esi + 0xc]
lea ecx, [eax - 1]
cmp ecx, 1
ja 0x1005ca2
push dword [ebp - 0x1014]
mov eax, ebx
call fcn.01005508
mov dword [ebp - 0x1010], eax
jmp 0x1005cc1
push eax
push 0x1001fb0
push dword [0x101135c]
call fcn.0100a43e
add esp, 0xc
push 0x2ee6
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebx + 0x1c]
push dword [eax + 0x10]
lea ecx, [ebp - 0x1024]
call fcn.01004781
push 0x900
xor edi, edi
push edi
push edi
push dword [eax + 4]
lea eax, [ebx + 0x258]
push 0x105
push eax
call fcn.0100a585
lea ecx, [ebp - 0x1024]
call fcn.010047b4
mov dword [ebx + 0x1c], edi
mov edi, dword [ebp - 0x1010]
jmp 0x1005c72