Function at 0x447540
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x348]
sub esp, 0x348
push 0xffffffffffffffff
push 0x4716d3
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x484008]
xor eax, ebp
mov dword [ebp + 0x344], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], 0x114
mov ecx, dword [ebp + 0x350]
call fcn.00401280
movzx eax, byte [0x4862c9]
test eax, eax
jne 0x44765b
mov ecx, 1
imul edx, ecx, 0
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 0x115
jae 0x4475ad
jmp 0x4475b2
call fcn.00425cda
mov eax, dword [ebp - 0x1c]
mov byte [ebp + eax + 0x22c], 0
lea ecx, [ebp + 0x22c]
push ecx
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4475e1
cmp dword [ebp - 0x20], 0x114
jb 0x4475e8
xor al, al
jmp 0x44778e
mov edx, 1
imul eax, edx, 0x114
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x115
jae 0x447601
jmp 0x447606
call fcn.00425cda
mov ecx, dword [ebp - 0x24]
mov byte [ebp + ecx + 0x22c], 0
lea edx, [ebp + 0x22c]
push edx
lea eax, [ebp - 0x50]
push eax
call fcn.00443710
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x40]
push edx
mov ecx, dword [ebp + 0x350]
call fcn.00444fa0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.004011d0
mov al, 1
jmp 0x44778e
mov eax, 2
imul ecx, eax, 0
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x28], 0x22a
jae 0x447671
jmp 0x447676
call fcn.00425cda
xor edx, edx
mov eax, dword [ebp - 0x28]
mov word [ebp + eax], dx
lea ecx, [ebp]
push ecx
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x44769f
xor al, al
jmp 0x44778e
cmp dword [ebp - 0x14], 0x114
jae 0x4476e6
mov edx, 2
imul eax, edx, 0x114
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x22a
jae 0x4476c1
jmp 0x4476c6
call fcn.00425cda
xor ecx, ecx
mov edx, dword [ebp - 0x2c]
mov word [ebp + edx], cx
lea eax, [ebp]
push eax
mov ecx, dword [ebp + 0x350]
call fcn.00444ec0
mov al, 1
jmp 0x44778e
lea ecx, [ebp - 0x38]
call fcn.00444e60
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x38]
call fcn.00401b10
push eax
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x44772d
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.004011d0
mov al, byte [ebp - 0xd]
jmp 0x44778e
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x38]
call fcn.00402730
lea ecx, [ebp - 0x38]
call fcn.00401230
cmp eax, dword [ebp - 0x18]
jne 0x447751
mov ecx, dword [ebp - 0x14]
sub ecx, 1
cmp ecx, dword [ebp - 0x18]
je 0x447769
mov byte [ebp - 0xe], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.004011d0
mov al, byte [ebp - 0xe]
jmp 0x44778e
lea edx, [ebp - 0x38]
push edx
mov ecx, dword [ebp + 0x350]
call fcn.00444fa0
mov byte [ebp - 0xf], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.004011d0
mov al, byte [ebp - 0xf]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp + 0x344]
xor ecx, ebp
call fcn.004259b9
add ebp, 0x348
mov esp, ebp
pop ebp
ret 4