Function at 0x402660
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x78834c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x208], eax
mov eax, dword [eax]
push esi
push edi
mov dword [0x812f58], eax
call fcn.0040aaf0
push 0x200
lea ecx, [ebp - 0x204]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4026c1
mov edx, dword [ebp - 0x208]
mov eax, dword [edx]
push 0x200
push eax
lea ecx, [ebp - 0x204]
push ecx
call dword [sym.imp.MSVCR100.dll_strncpy]
add esp, 0xc
push 0x100
push 0x200
push 0x4b8ae9
push 0x812344
call fcn.00408360
add esp, 0x10
test al, al
jne 0x40291b
push 0x100
push 0x200
push 0x4b8ae9
push 0x81255c
call fcn.00408360
add esp, 0x10
test al, al
jne 0x40291b
lea edx, [ebp - 0x208]
push edx
lea eax, [ebp + 8]
push eax
push 0x4d5bf4
mov ebx, 1
push 0x4b961c
mov byte [0x812f08], bl
call fcn.0040a570
add esp, 0x10
test eax, eax
je 0x40273c
push 0
call fcn.00401120
mov ecx, dword [ebp - 0x208]
push 0x4012c0
push 0x4d5c00
lea edx, [ebp - 0x208]
push edx
lea eax, [ebp + 8]
push eax
mov byte [0x812f08], 0
mov dword [0x812354], ecx
call fcn.0040d0e0
add esp, 0x10
test eax, eax
je 0x402777
push 0
call fcn.00401120
cmp byte [0x812559], 0
je 0x40278a
mov dword [0x812794], 3
cmp byte [0x812343], 0
je 0x402799
mov dword [0x812794], ebx
cmp byte [0x812772], 0
je 0x4027d2
push 0
call fcn.0040ee70
push 0
push eax
push str.__password
push 0x812344
mov dword [0x812798], eax
call fcn.00408570
push 0x4b89fc
push 0x812344
call fcn.00408660
add esp, 0x1c
mov ecx, dword [str.root]
push 0
push ecx
push str.__user
push 0x812344
call fcn.00408570
push 0x4b89fc
push 0x812344
call fcn.00408660
push str.mysql.exe
lea edi, [ebp - 0x204]
mov ebx, 0x812570
call fcn.004019c0
mov esi, dword [sym.imp.MSVCR100.dll_printf]
add esp, 0x1c
cmp byte [0x812340], 0
jne 0x402831
push str.mysqlcheck.exe
mov ebx, 0x812358
call fcn.004019c0
jmp 0x402838
push str.The___upgrade_system_tables_option_was_used__databases_wont_be_touched._n
call esi
add esp, 4
cmp byte [0x812341], 0
jne 0x402863
call fcn.00401e10
test eax, eax
je 0x402863
push str.5.6.40
push str.This_installation_of_MySQL_is_already_upgraded_to__s__use___force_if_you_still_need_to_run_mysql_upgrade_n
call esi
add esp, 8
push 0
call fcn.00401120
cmp byte [0x812558], 0
je 0x40287f
call fcn.004024f0
test eax, eax
je 0x40287f
push str.Upgrade_failed
call fcn.00401120
cmp byte [0x812340], 0
jne 0x4028ae
call fcn.004021a0
test eax, eax
je 0x40289b
push str.Error_during_call_to_mysql_check_for_fixing_the_db_tables_names_on_mysql_db
call fcn.00401120
call fcn.00402130
test eax, eax
je 0x4028ae
push str.Error_during_call_to_mysql_check_for_upgrading_the_tables_names_on_mysql_db
call fcn.00401120
call fcn.00402330
test eax, eax
je 0x4028c1
push str.Upgrade_failed
call fcn.00401120
cmp byte [0x812340], 0
jne 0x4028f0
call fcn.004020c0
test eax, eax
je 0x4028dd
push str.Error_during_call_to_mysql_check_for_fixing_the_db_tables_names_on_all_db_s__except_mysql
call fcn.00401120
call fcn.00402050
test eax, eax
je 0x4028f0
push str.Error_during_call_to_mysql_check_for_upgrading_the_tables_names_on_all_db_s__except_mysql
call fcn.00401120
push 0x4b9350
call fcn.004011c0
call fcn.00401f10
call fcn.004010f0
mov edx, dword [0x812794]
push edx
call fcn.0040a660
add esp, 8
push 0
call dword [sym.imp.MSVCR100.dll_exit]
push str.Out_of_memory
call fcn.00401120
int3