Function at 0x437810
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4844b0
mov eax, dword fs:[0]
push eax
sub esp, 0x168
push ebx
push esi
push edi
mov eax, dword [0x4c600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x28], eax
cmp dword [eax + 4], 0
jne 0x437c30
xor edi, edi
mov dword [ebp - 0x20], 0
xor ebx, ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
and eax, 6
cmp al, 6
jne 0x437b13
push 0x107
lea ecx, [ebp - 0x20]
call fcn.00410f2e
mov edi, dword [ebp - 0x1c]
test eax, eax
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
jne 0x4378e5
cmp esi, 0x107
jae 0x4378bd
mov eax, 0x107
lea ecx, [edi + esi*2]
sub eax, esi
mov esi, 0x107
mov dword [ebp - 0x18], esi
test ecx, ecx
je 0x4378e9
add eax, eax
push eax
push ebx
push ecx
call fcn.0046a5d0
add esp, 0xc
jmp 0x4378e9
je 0x4378e9
lea esi, [esi*2 - 0x20e]
lea eax, [edi + 0x20e]
test esi, esi
je 0x4378db
mov byte [eax], 0
lea eax, [eax + 1]
sub esi, 1
jne 0x4378d0
mov esi, 0x107
mov dword [ebp - 0x18], esi
jmp 0x4378e9
test eax, eax
jne 0x4378f0
xor eax, eax
mov word [edi + esi*2 - 2], ax
mov ebx, 0x4ca5a4
test esi, esi
mov ecx, ebx
cmovne ecx, edi
call fcn.0041f590
test eax, eax
jne 0x437a12
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
je 0x437998
mov eax, dword [ebp + 8]
test al, 1
jne 0x437954
sub esp, 8
mov ecx, esp
push str.GetSystemWow64Directory__
call fcn.00411d4b
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push eax
lea ecx, [ebp - 0xa4]
call fcn.004024a8
push 0x4c31b0
lea eax, [ebp - 0xa4]
push eax
call fcn.0046b639
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x43797b
test esi, esi
je 0x43797b
mov eax, edi
add esi, esi
je 0x43797b
lea esp, [esp]
mov byte [eax], 0
lea eax, [eax + 1]
sub esi, 1
jne 0x437970
push edi
call fcn.0043af60
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test esi, esi
push 0x104
cmovne ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x437a12
mov eax, dword [ebp + 8]
test al, 1
jne 0x4379e9
sub esp, 8
mov ecx, esp
push str.GetSystemDirectory__
call fcn.00411bfb
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push eax
lea ecx, [ebp - 0x10c]
call fcn.004024a8
push 0x4c31b0
lea eax, [ebp - 0x10c]
push eax
call fcn.0046b639
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x43797b
test esi, esi
je 0x43797b
mov eax, edi
add esi, esi
je 0x43797b
mov byte [eax], 0
lea eax, [eax + 1]
sub esi, 1
jne 0x437a02
jmp 0x43797b
cmp eax, 0xffffffff
jne 0x437a1c
call fcn.00401dbf
lea ebx, [eax + 1]
test ebx, ebx
jne 0x437a63
xor eax, eax
cmp ebx, esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
je 0x437a53
sub esi, ebx
lea eax, [edi + ebx*2]
add esi, esi
je 0x437a4b
jmp 0x437a40
mov byte [eax], 0
lea eax, [eax + 1]
sub esi, 1
jne 0x437a40
mov esi, ebx
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov word [edi + esi*2 - 2], cx
test esi, esi
je 0x437ab3
lea ecx, [esi - 1]
jmp 0x437ab5
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x437a5a
cmp ebx, dword [ebp - 0x14]
jbe 0x437a8e
push ebx
lea ecx, [ebp - 0x20]
call fcn.00410f2e
mov esi, dword [ebp - 0x18]
test eax, eax
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x1c]
je 0x437a8b
test eax, eax
jne 0x437a5a
jmp 0x437a53
mov dword [ebp - 0x24], eax
cmp ebx, esi
jbe 0x437a2d
mov ecx, ebx
lea edx, [edi + esi*2]
sub ecx, esi
mov esi, ebx
mov dword [ebp - 0x18], esi
test edx, edx
je 0x437a53
lea eax, [ecx + ecx]
push eax
push 0
push edx
call fcn.0046a5d0
add esp, 0xc
jmp 0x437a50
xor ecx, ecx
dec ecx
test eax, eax
jne 0x437be8
test esi, esi
je 0x437be8
lea eax, [esi - 1]
cmp ecx, eax
jae 0x437be8
cmp word [edi + ecx*2], 0x5c
je 0x437ae7
push 1
push 0x4a495c
lea ecx, [ebp - 0x20]
call fcn.00416670
push dword [ebp + 0x10]
lea ecx, [ebp - 0x20]
push dword [ebp + 0xc]
call fcn.00416670
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
test ebx, ebx
je 0x437b06
lea ecx, [ebx - 1]
mov eax, edi
jmp 0x437b0d
xor ecx, ecx
mov eax, 0x4ca5a8
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x38]
and esi, 2
mov dword [ebp - 0x24], eax
shl esi, 2
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 5
mov ecx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00410191
mov byte [ebp - 4], 6
mov eax, 0x4ca5a8
cmp dword [ebp - 0x30], 0
push esi
cmovne eax, dword [ebp - 0x34]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, dword [ebp - 0x28]
mov dword [esi + 4], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x38]
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x437b9e
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x437b9e
add ecx, ecx
je 0x437b9e
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x437b90
mov eax, dword [ebp - 0x34]
push eax
call fcn.0043af60
add esp, 4
cmp dword [esi + 4], 0
jne 0x437bfc
test byte [ebp + 8], 1
jne 0x437bfc
sub esp, 8
mov ecx, esp
push str.LoadLibraryEx__
call fcn.00411bd1
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push eax
lea ecx, [ebp - 0x174]
call fcn.004024a8
push 0x4c31b0
lea eax, [ebp - 0x174]
push eax
call fcn.0046b639
push 0xca
mov edx, str.basic_ncstring_wchar_t_::operator___
mov ecx, str._af___i_length__
call fcn.00417c20
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x43797b
test ebx, ebx
je 0x43797b
lea ecx, [ebx + ebx]
mov eax, edi
test ecx, ecx
je 0x43797b
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x437c20
jmp 0x43797b
push 8
mov edx, str.DllLoader::Init
mov ecx, str._m_hDll
call fcn.00417c20
int3