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

Disassembly:
sub esp, 0x244
push ebx
push ebp
push esi
push edi
push 0
lea eax, [esp + 0x40]
push 0x80
push eax
mov byte [esp + 0x1f], 0
mov dword [esp + 0x20], 0
call fcn.10008370
mov ebp, dword [esp + 0x26c]
mov eax, dword [ebp]
mov ebx, dword [esp + 0x270]
add esp, 0xc
cmp eax, 2
jl 0x10003eb6
mov ecx, dword [ebx]
mov esi, dword [ecx + 4]
mov edi, str.__no_defaults
mov ecx, 0xe
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x10003eb6
lea eax, [eax*4 + 0x1c]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.100083d0
add esp, 8
test eax, eax
je 0x100040ac
mov ecx, dword [ebx]
mov ecx, dword [ecx]
lea edx, [eax + 0x18]
mov dword [edx], ecx
mov esi, dword [ebp]
mov ecx, 2
cmp esi, ecx
jbe 0x10003e99
mov esi, dword [ebx]
mov esi, dword [esi + ecx*4]
mov dword [edx + ecx*4 - 4], esi
mov esi, dword [ebp]
inc ecx
cmp ecx, esi
jb 0x10003e88
dec dword [ebp]
mov ecx, 6
lea esi, [esp + 0x3c]
mov edi, eax
mov dword [ebx], edx
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x244
ret
xor esi, esi
cmp eax, 2
jl 0x10003f1e
mov edx, dword [ebx]
mov eax, dword [edx + 4]
push str.__defaults_file
push eax
call sym.LIBMYSQL.dll_is_prefix
add esp, 8
test eax, eax
je 0x10003ee9
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
push 0x3d
push edx
call fcn.10011070
mov esi, eax
add esp, 8
inc esi
jmp 0x10003f16
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
push str.__defaults_extra_file
push ecx
call sym.LIBMYSQL.dll_is_prefix
add esp, 8
test eax, eax
je 0x10003f1e
mov edx, dword [ebx]
mov eax, dword [edx + 4]
push 0x3d
push eax
call fcn.10011070
add esp, 8
inc eax
mov dword [0x10036adc], eax
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x25c]
mov edx, dword [eax]
xor ecx, ecx
test edx, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], str.defaults
mov dword [esp + 0x20], eax
je 0x10003f4f
lea ecx, [ecx]
mov edx, dword [eax + 4]
add eax, 4
inc ecx
test edx, edx
jne 0x10003f40
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp]
push 0x20
push ecx
lea edx, [esp + 0x2c]
push 4
push edx
call sym.LIBMYSQL.dll_init_dynamic_array
add esp, 0x10
test al, al
jne 0x100040ac
test esi, esi
je 0x10003f9f
lea eax, [esp + 0x18]
push eax
push 0x10036ad8
push esi
push 0x10036ad8
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.10004200
add esp, 0x18
test al, al
jne 0x100040ac
jmp 0x10004086
mov edi, dword [esp + 0x258]
push edi
call fcn.10007a80
add esp, 4
test eax, eax
je 0x10003fdf
lea eax, [esp + 0x18]
push eax
push str..cnf
push edi
push 0
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.10004200
add esp, 0x18
test al, al
jne 0x100040ac
jmp 0x10004086
push 0x200
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x18]
push ecx
push str..ini
push edi
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.10004200
add esp, 0x18
test al, al
jne 0x100040ac
mov eax, dword [0x10030b34]
test eax, eax
mov esi, 0x10030b34
je 0x10004086
mov ecx, dword [0x10036adc]
lea ecx, [ecx]
mov eax, dword [esi]
cmp byte [eax], 0
je 0x10004045
lea edx, [esp + 0x18]
push edx
push str..cnf
push edi
push eax
jmp 0x10004056
test ecx, ecx
je 0x1000407c
lea edx, [esp + 0x18]
push edx
push str..cnf
push ecx
push 0
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.10004200
movsx eax, al
add esp, 0x18
test eax, eax
jne 0x100040ac
mov ecx, dword [0x10036adc]
mov edi, dword [esp + 0x258]
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
jne 0x10004030
mov eax, dword [esp + 0x28]
mov edx, dword [ebp]
add edx, eax
lea eax, [edx*4 + 0x1c]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.100083d0
add esp, 8
test eax, eax
mov dword [esp + 0x38], eax
jne 0x100040c5
push str.Program_aborted_n
push 0x10033030
call fcn.10010ac4
add esp, 8
push 1
call fcn.10010eb4
lea edx, [eax + 0x18]
mov eax, dword [ebx]
mov ecx, dword [eax]
mov eax, dword [esp + 0x14]
mov dword [edx], ecx
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
lea edi, [edx + 4]
rep movsd dword es:[edi], dword [esi]
sub dword [ebp], eax
mov esi, dword [ebx]
shl eax, 2
add esi, eax
mov dword [ebx], esi
cmp dword [ebp], 2
mov eax, esi
jl 0x10004119
mov esi, dword [eax + 4]
mov edi, str.__print_defaults
mov ecx, 0x11
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x10004119
mov eax, dword [ebp]
dec eax
mov dword [ebp], eax
mov eax, dword [ebx]
add eax, 4
mov byte [esp + 0x13], 1
mov dword [ebx], eax
mov ecx, dword [ebp]
mov eax, dword [esp + 0x28]
mov esi, dword [ebx]
lea ecx, [ecx*4 - 4]
lea edi, [edx + eax*4 + 4]
mov eax, ecx
shr ecx, 2
add esi, 4
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
add ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x38]
mov dword [edx + ecx*4], 0
mov esi, dword [ebp]
mov eax, dword [esp + 0x28]
add esi, eax
mov dword [ebp], esi
mov dword [ebx], edx
mov ecx, 6
lea esi, [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x24]
push ecx
call sym.LIBMYSQL.dll_delete_dynamic
mov al, byte [esp + 0x17]
add esp, 4
test al, al
je 0x10003eab
mov edx, dword [ebx]
mov eax, dword [edx]
push eax
push str._s_would_have_been_started_with_the_following_arguments:_n
call fcn.10010700
mov eax, dword [ebp]
mov esi, 1
add esp, 8
cmp eax, esi
jle 0x100041bb
mov ecx, dword [ebx]
mov edx, dword [ecx + esi*4]
push edx
push 0x10030b44
call fcn.10010700
mov eax, dword [ebp]
add esp, 8
inc esi
cmp esi, eax
jl 0x100041a0
push 0x10036ad8
call fcn.10010fe7
add esp, 4
push 1
call fcn.10010eb4
nop