Function at 0x404b30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44ffbc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x160
mov eax, dword [0x46aa78]
push ebx
push esi
push edi
mov dword [esp + 0x164], eax
mov esi, ecx
call fcn.004472e0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x174], 0
call fcn.004472e0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x174], 1
call fcn.004472e0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x18], 0x10
mov byte [esp + 0x174], 2
jb 0x404bcb
mov eax, dword [ebx + 4]
lea edi, [ebx + 4]
mov dword [esp + 0x14], edi
jmp 0x404bd4
lea eax, [ebx + 4]
mov dword [esp + 0x14], eax
mov edi, eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x30]
push edx
push eax
call fcn.0044b8f0
cmp dword [esp + 0x24], 0x1000
jne 0x404c53
xor eax, eax
mov byte [esp + 0x58], 0
mov ecx, 0x40
lea edi, [esp + 0x59]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x58]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp dword [ebx + 0x18], 0x10
jb 0x404c2b
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
jmp 0x404c2f
mov eax, dword [esp + 0x14]
push eax
lea edx, [esp + 0x5c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [esp + 0x58]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404c42
sub eax, edx
push eax
lea eax, [esp + 0x5c]
push eax
jmp 0x404c73
cmp dword [ebx + 0x18], 0x10
jb 0x404c5b
mov edi, dword [edi]
test edi, edi
jne 0x404c63
xor eax, eax
jmp 0x404c71
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404c68
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.004021c0
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x3c]
mov word [esp + 0x3c], 0
call fcn.004298dc
push 0
push 0
push 0
push 0
lea edx, [esp + 0x48]
push edx
push 0x46922c
push 0
push 0
push 1
lea edi, [esi + 0x74]
push 0x1f4
push edi
mov byte [esp + 0x1a0], 3
call fcn.00445e9d
mov eax, dword [esi + 0xc30]
add esp, 0x2c
test eax, eax
je 0x404d24
mov ecx, dword [esi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x48]
push eax
push ecx
call ebx
mov eax, dword [esi + 0x90]
lea edx, [esp + 0x28]
push edx
push eax
call ebx
mov eax, dword [esi + 0xcc0]
mov ecx, dword [esi + 0xcbc]
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
push 1
sub esi, edx
push esi
mov esi, dword [esp + 0x30]
sub ebx, esi
push ebx
sub eax, dword [esp + 0x58]
sub ecx, dword [esp + 0x54]
add eax, edx
add ecx, esi
push eax
push ecx
mov ecx, edi
call fcn.00445de1
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x174], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404d55
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x174], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404d7b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x174], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404da4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x16c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x164]
call fcn.00430cd9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4