Function at 0x4ef060
Capabilities:
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
push esi
push edi
mov byte [ebp - 0x5c], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x30]
push eax
push 0x46
push str.C:projektphp2exe_projectphp_4.4.2_sourceextmysqllibmysqldefault.c
push str.load_defaults
call fcn.004e9f97
add esp, 0x1c
push 0
push 0x80
lea ecx, [ebp - 0x58]
push ecx
call fcn.004ec6b0
add esp, 0xc
mov edx, dword [ebp + 0x10]
cmp dword [edx], 2
jl 0x4ef183
push str.__no_defaults
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push edx
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x4ef183
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
lea edx, [ecx*4 + 0x1c]
push edx
lea eax, [ebp - 0x58]
push eax
call fcn.004ec73c
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4ef0fe
jmp 0x4ef57d
mov ecx, dword [ebp - 4]
add ecx, 0x18
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x34]
mov edx, dword [eax]
mov dword [ecx], edx
mov dword [ebp - 0x64], 2
jmp 0x4ef125
mov eax, dword [ebp - 0x64]
add eax, 1
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x64]
cmp edx, dword [ecx]
jae 0x4ef146
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x34]
mov esi, dword [ebp - 0x64]
mov ecx, dword [ecx + esi*4]
mov dword [eax + edx*4 - 4], ecx
jmp 0x4ef11c
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
sub eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x34]
mov dword [edx], eax
mov ecx, 6
lea esi, [ebp - 0x58]
mov edi, dword [ebp - 4]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x30]
push eax
push 0x57
call fcn.004ea08d
add esp, 0x10
jmp 0x4ef59c
mov dword [ebp - 0x3c], 0
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 2
jl 0x4ef210
push str.__defaults_file
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov ecx, dword [eax + 4]
push ecx
call fcn.004f2c80
add esp, 8
test eax, eax
je 0x4ef1d1
push 0x3d
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
add eax, 1
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x4ef210
push str.__defaults_extra_file
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push edx
call fcn.004f2c80
add esp, 8
test eax, eax
je 0x4ef210
push 0x3d
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
add eax, 1
mov dword [0x54fc7c], eax
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], str.defaults
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x20], ecx
jmp 0x4ef22f
mov edx, dword [ebp + 0xc]
add edx, 4
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x4ef242
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
jmp 0x4ef226
push 0x20
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
push 4
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004f2fc0
add esp, 0x10
movsx edx, al
test edx, edx
je 0x4ef264
jmp 0x4ef57d
cmp dword [ebp - 0x3c], 0
je 0x4ef29d
lea eax, [ebp - 0x28]
push eax
push 0x54fc84
mov ecx, dword [ebp - 0x3c]
push ecx
push 0x54fc88
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.004ef5cf
add esp, 0x18
movsx ecx, al
test ecx, ecx
je 0x4ef298
jmp 0x4ef57d
jmp 0x4ef3c8
mov edx, dword [ebp + 8]
push edx
call fcn.004f2ac0
add esp, 4
test eax, eax
je 0x4ef2dd
lea eax, [ebp - 0x28]
push eax
push 0x54a7cc
mov ecx, dword [ebp + 8]
push ecx
push 0
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.004ef5cf
add esp, 0x18
movsx ecx, al
test ecx, ecx
je 0x4ef2d8
jmp 0x4ef57d
jmp 0x4ef3c8
push 0x200
lea edx, [ebp - 0x264]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x28]
push eax
push 0x54a7d4
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x264]
push edx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004ef5cf
add esp, 0x18
movsx edx, al
test edx, edx
je 0x4ef31f
jmp 0x4ef57d
mov dword [ebp - 0x60], 0x54a718
jmp 0x4ef331
mov eax, dword [ebp - 0x60]
add eax, 4
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
cmp dword [ecx], 0
je 0x4ef3c8
mov dword [ebp - 0x268], 0
mov edx, dword [ebp - 0x60]
mov eax, dword [edx]
movsx ecx, byte [eax]
test ecx, ecx
je 0x4ef381
lea edx, [ebp - 0x28]
push edx
push 0x54a7dc
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx]
push edx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004ef5cf
add esp, 0x18
movsx edx, al
mov dword [ebp - 0x268], edx
jmp 0x4ef3b5
cmp dword [0x54fc7c], 0
je 0x4ef3b5
lea eax, [ebp - 0x28]
push eax
push 0x54a7e4
mov ecx, dword [0x54fc7c]
push ecx
push 0
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.004ef5cf
add esp, 0x18
movsx ecx, al
mov dword [ebp - 0x268], ecx
cmp dword [ebp - 0x268], 0
je 0x4ef3c3
jmp 0x4ef57d
jmp 0x4ef328
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x18]
add eax, dword [edx]
lea ecx, [eax*4 + 0x1c]
push ecx
lea edx, [ebp - 0x58]
push edx
call fcn.004ec73c
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4ef3f2
jmp 0x4ef57d
mov eax, dword [ebp - 4]
add eax, 0x18
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x34]
mov ecx, dword [edx]
mov dword [eax], ecx
mov edx, dword [ebp - 0x18]
shl edx, 2
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x34]
add ecx, 4
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
sub eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
lea edx, [eax + ecx*4]
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 2
jl 0x4ef47e
push str.__print_defaults
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov ecx, dword [eax + 4]
push ecx
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x4ef47e
mov byte [ebp - 0x5c], 1
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
sub eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
add eax, 4
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
lea ecx, [eax*4 - 4]
push ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
add eax, 4
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x34]
lea eax, [edx + ecx*4 + 4]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x18]
add edx, dword [ecx]
mov eax, dword [ebp - 0x34]
mov dword [eax + edx*4], 0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
add edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x34]
mov dword [ecx], edx
mov ecx, 6
lea esi, [ebp - 0x58]
mov edi, dword [ebp - 4]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x1c]
push eax
call fcn.004f3349
add esp, 4
movsx ecx, byte [ebp - 0x5c]
test ecx, ecx
je 0x4ef562
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
push str._s_would_have_been_started_with_the_following_arguments:_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
mov dword [ebp - 0x26c], 1
jmp 0x4ef520
mov edx, dword [ebp - 0x26c]
add edx, 1
mov dword [ebp - 0x26c], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x26c]
cmp ecx, dword [eax]
jge 0x4ef54c
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x26c]
mov edx, dword [eax + ecx*4]
push edx
push 0x54a83c
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
jmp 0x4ef511
push 0x54fc8c
call dword [sym.imp.MSVCRT.dll_puts]
add esp, 4
push 1
call dword [sym.imp.MSVCRT.dll_exit]
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x30]
push edx
push 0xbf
call fcn.004ea08d
add esp, 0x10
jmp 0x4ef59c
push str.Program_aborted_n
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 8
push 1
call dword [sym.imp.MSVCRT.dll_exit]
pop edi
pop esi
mov esp, ebp
pop ebp
ret