Function at 0x437860
Capabilities:
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x560
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
call fcn.00437130
mov esi, eax
mov dword [ebp - 0x14], esi
mov eax, dword [esi]
test eax, eax
je 0x43788c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi], 0
mov edx, dword [esi]
lea eax, [ebp - 4]
lea ecx, [ebp - 8]
push eax
push ecx
push edx
push 0
call sub.WS2_32.dll_WSCEnumProtocols
mov eax, dword [ebp - 8]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [ebp - 4]
lea edx, [ebp - 8]
push ecx
push edx
push eax
push 0
mov dword [esi], eax
call sub.WS2_32.dll_WSCEnumProtocols
xor edx, edx
mov dword [esi + 4], eax
test eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], edx
jle 0x437ba4
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x55e]
mov word [ebp - 0x560], bx
mov dword [ebp - 4], 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x18]
lea ecx, [ebp - 4]
push eax
push ecx
lea ecx, [edx + edx*4]
lea eax, [ebp - 0x560]
shl ecx, 3
sub ecx, edx
push eax
mov eax, dword [esi]
lea edx, [edx + ecx*4]
lea ecx, [eax + edx*4 + 0x14]
push ecx
call sub.WS2_32.dll_WSCGetProviderPath
test eax, eax
jne 0x437b92
lea edx, [ebp - 0x560]
test edx, edx
je 0x437963
lea eax, [ebp - 0x560]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call sub.ntdll.dll__alloca_probe
mov ebx, esp
push 0
push 0
push edi
push ebx
lea ecx, [ebp - 0x560]
push 0xffffffffffffffff
push ecx
push 0
push 0
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea edx, [ebp - 0x560]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test ebx, ebx
je 0x437b92
push 0x47c558
push ebx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x437b92
mov ecx, dword [ebp - 0xc]
push ebx
call fcn.00437bc0
test eax, eax
je 0x437b92
mov eax, dword [ebp - 0xc]
mov edi, dword [eax + 8]
lea esi, [eax + 4]
mov ecx, dword [edi + 4]
push ecx
push edi
mov ecx, esi
call fcn.00437d30
mov dword [edi + 4], eax
mov edx, dword [eax + 4]
lea ecx, [ebp - 0x10]
mov dword [edx], eax
add eax, 8
push ecx
push eax
call fcn.00437ee0
mov eax, dword [esi + 8]
add esp, 8
inc eax
mov ecx, 0x40
mov dword [esi + 8], eax
xor eax, eax
lea edi, [ebp - 0x11b]
mov byte [ebp - 0x11c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, ebx
lea ecx, [ebp - 0x11c]
stosb byte es:[edi], al
mov edx, 0x104
lea eax, [ebp - 0x11c]
sub esi, ecx
mov cl, byte [esi + eax]
test cl, cl
je 0x437a11
mov byte [eax], cl
inc eax
dec edx
jne 0x437a02
jmp 0x437a15
test edx, edx
jne 0x437a16
dec eax
mov byte [eax], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x357]
mov byte [ebp - 0x358], 0
lea edx, [ebp - 0x358]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
push edx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x5c
push ebx
call dword [sym.imp.MSVCRT.dll__mbsrchr]
mov esi, eax
xor edi, edi
add esp, 8
cmp esi, edi
je 0x437b7b
sub eax, ebx
lea ecx, [ebp - 0x358]
push eax
push ecx
push ebx
call dword [sym.imp.SHLWAPI.dll_StrCmpNIA]
test eax, eax
jne 0x437b7b
push 0x47bdc4
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x437b7b
lea edx, [ebp - 0x11c]
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x128], edi
mov dword [ebp - 0x130], 2
mov dword [ebp - 0x120], edi
mov esi, 0x104
lea eax, [ebp - 0x254]
sub edx, ecx
mov cl, byte [edx + eax]
test cl, cl
je 0x437ac7
mov byte [eax], cl
inc eax
dec esi
jne 0x437ab8
jmp 0x437acb
cmp esi, edi
jne 0x437acc
dec eax
lea edx, [ebp - 0x254]
mov ecx, 0x480390
push edx
mov byte [eax], 0
call fcn.0040ac00
xor edx, edx
push 0x4803a4
div dword [0x480398]
mov esi, edx
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x480394]
mov ebx, dword [eax + esi*4]
test ebx, ebx
mov esi, ebx
je 0x437b21
lea ecx, [ebp - 0x254]
lea edx, [esi + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x437b68
mov esi, dword [esi]
test esi, esi
jne 0x437b06
push 1
mov ecx, 0x4803c4
call fcn.00437d60
mov edx, dword [ebp - 4]
lea edi, [eax + 4]
mov ecx, 0x4e
lea esi, [ebp - 0x254]
mov dword [eax], 0
rep movsd dword es:[edi], dword [esi]
mov dword [eax + 0x13c], 0
mov dword [eax], ebx
mov ecx, dword [0x480394]
mov dword [ecx + edx*4], eax
mov ecx, dword [0x48039c]
inc ecx
mov dword [0x48039c], ecx
push 0x4803a4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0xc]
push eax
push 0x6c
jmp 0x437b81
mov eax, dword [ebp + 0xc]
push eax
push 0x6d
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 0x11c]
push ecx
push edx
call dword [ebp + 8]
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
inc edx
cmp edx, eax
mov dword [ebp - 0x10], edx
jl 0x4378cf
lea esp, [ebp - 0x56c]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8