Function at 0x413d00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c286
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x43b1c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.SpOrder.dll
mov dword [ebp - 0x254], eax
call edi
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x413f1f
push 0x42f460
call edi
mov esi, eax
cmp esi, ebx
je 0x413d86
push 0x43405c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x413d7f
push str.SPOrder.dll_not_found__using_ws2_32.dll_instead_n
call fcn.004131d0
add esp, 4
jmp 0x413f1f
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor edx, edx
lea eax, [ebp - 0x218]
mov word [ebp - 0x234], dx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x413dc0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.00401720
push 0xb
push 0x434010
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], ebx
call fcn.00401600
mov eax, dword [ebp - 0x234]
mov edi, 8
cmp dword [ebp - 0x220], edi
jae 0x413e10
lea eax, [ebp - 0x234]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call esi
cmp eax, ebx
jne 0x413e7e
push 0x434008
lea ecx, [ebp - 0x250]
call fcn.00401810
push 1
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x250]
push 0x65
push edx
mov byte [ebp - 4], 1
call fcn.00401ae0
add esp, 0x10
mov byte [ebp - 4], bl
cmp dword [ebp - 0x23c], edi
jb 0x413e65
mov eax, dword [ebp - 0x250]
push eax
call fcn.00418f39
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], ebx
mov word [ebp - 0x250], cx
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x220], edi
jae 0x413e92
lea eax, [ebp - 0x234]
push eax
call esi
mov esi, eax
cmp esi, ebx
jne 0x413ee8
push str.Failed_to_load_SpOrder.dll__n
call fcn.00413260
add esp, 4
push 0x42f460
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
jne 0x413edb
push str.Failed_to_load_ws2_32.dll__n
call fcn.00413260
add esp, 4
lea ecx, [ebp - 0x234]
call fcn.004013c0
mov eax, 0x2726
jmp 0x413f5b
push str.Trying_to_use_ws2_32.dll_instead_of_sporder_n
call fcn.004131d0
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x220], edi
jb 0x413f06
mov edx, dword [ebp - 0x234]
push edx
call fcn.00418f39
add esp, 4
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], ax
push 0x43405c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
jne 0x413f43
push str.Failed_to_use__GetProcAddress__n
call fcn.00413260
add esp, 4
mov eax, 0x2726
jmp 0x413f5b
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x254]
push ecx
push edx
call eax
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00419ad1
mov esp, ebp
pop ebp
ret