Function at 0x404e70
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x443e03
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x148], 0
call fcn.0042cb11
test eax, eax
je 0x404eae
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x404eb0
xor eax, eax
push 1
push 0
lea ecx, [eax + 0xbc]
call fcn.004339e1
mov ebx, eax
mov eax, dword [esp + 0x150]
lea ecx, [esp + 0x150]
mov eax, dword [eax - 8]
push eax
call fcn.0042b875
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
call fcn.004161f8
mov dword [esp + 0x18], eax
lea edx, [esp + 0x1c]
push 2
lea eax, [esp + 0x28]
push edx
push eax
call fcn.00415f30
lea ecx, [esp + 0x2a]
push 3
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.00415f30
mov edi, str.poem.htm
or ecx, 0xffffffff
xor eax, eax
add esp, 0x1c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x30]
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0x22], 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov byte [esp + 0x2b], 0
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc0]
push ecx
push 0x80
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [esp + 0xc0]
lea ecx, [esp + 0x10]
push edx
call fcn.0042b4b3
push 0x5c
lea ecx, [esp + 0x14]
mov byte [esp + 0x14c], 1
call fcn.0042b90c
test eax, eax
jle 0x404fb4
push 0x2f
push eax
lea ecx, [esp + 0x18]
call fcn.0042b967
push 0x5c
lea ecx, [esp + 0x14]
call fcn.0042b90c
test eax, eax
jg 0x404f99
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov eax, dword [eax - 8]
push eax
call fcn.0042b875
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, str.file:___
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xc0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x40]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x459570
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x40]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x30]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x20]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004161f8
lea ecx, [esp + 0x2c]
mov esi, eax
push ecx
call fcn.004161f8
mov edx, dword [esp + 0x1c]
add esp, 8
mov edi, eax
lea eax, [esp + 0x30]
push edx
push eax
mov ecx, ebp
call fcn.00405230
test eax, eax
je 0x405129
test ebx, ebx
je 0x405129
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x50]
push 0
push ecx
mov ecx, ebx
call fcn.0040dc3e
sub esi, 0xa
cmp esi, 6
jl 0x4050eb
inc esi
shl esi, 7
add esi, edi
mov edx, dword [ebp + 0x1c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp + esi*4 + 0x4c9b8]
lea esi, [ebp + esi*4 + 0x4c9b8]
push eax
push 0
push 0x1114
push edx
call edi
mov esi, dword [esi]
mov eax, dword [ebp + 0x1c]
push esi
push 9
push 0x110b
push eax
call edi
mov ecx, ebx
call fcn.0042abae
lea ecx, [esp + 0x10]
mov byte [esp + 0x148], 0
call fcn.0042b445
lea ecx, [esp + 0x150]
mov dword [esp + 0x148], 0xffffffff
call fcn.0042b445
mov ecx, dword [esp + 0x140]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x13c
ret 4