Function at 0x401000
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov dword [0x43e45c], ecx
call fcn.00406ee0
lea edx, [esp + 8]
push edx
lea eax, [esp + 8]
push eax
call fcn.00401330
add esp, 8
test eax, eax
je 0x401038
push 0
call fcn.00406ff0
add esp, 4
push 1
call fcn.00413491
mov ecx, dword [0x43e3fc]
mov edx, dword [0x43e400]
mov eax, dword [0x43e404]
push ecx
push edx
push eax
call fcn.00401b40
add esp, 0xc
test eax, eax
je 0x40105f
push 2
call fcn.00413491
mov eax, dword [0x43e408]
test eax, eax
jne 0x40107d
mov ecx, dword [esp + 8]
mov edx, dword [ecx]
mov eax, dword [0x446d0c]
push edx
push eax
call fcn.004012a0
add esp, 8
mov al, byte [0x43e3f1]
test al, al
je 0x4010cd
mov ecx, dword [0x43e3f8]
push str.FLUSH_TABLES_WITH_READ_LOCK
push ecx
mov byte [0x43e3e2], 0
call fcn.00405bb0
test eax, eax
je 0x4010cd
mov edx, dword [0x43e3f8]
push edx
call fcn.00406b90
push eax
push 0
push str.Error:_Couldnt_execute_FLUSH_TABLES_WITH_READ_LOCK:__s
push 0
call fcn.00406ea0
push 0
call fcn.00406ff0
mov eax, dword [0x43e42c]
add esp, 0x14
ret
mov al, byte [0x43e3ef]
test al, al
je 0x4010dd
call fcn.00401ca0
jmp 0x401114
mov eax, dword [esp + 4]
cmp eax, 1
jle 0x401107
mov cl, byte [0x43e3ee]
test cl, cl
jne 0x401107
dec eax
push eax
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
lea ecx, [eax + 4]
push ecx
push edx
call fcn.00403670
add esp, 0xc
jmp 0x401114
mov eax, dword [esp + 8]
push eax
call fcn.00401d20
add esp, 4
mov al, byte [0x43e3f1]
test al, al
je 0x401233
mov al, byte [0x43b3d0]
test al, al
push edi
je 0x4011ce
mov ecx, dword [0x43e3f8]
push str.SHOW_MASTER_STATUS
push ecx
call fcn.00405bb0
test eax, eax
jne 0x4011b0
mov edx, dword [0x43e3f8]
push edx
call fcn.00406450
mov edi, eax
test edi, edi
je 0x4011b0
push esi
push edi
call fcn.004066a0
mov esi, eax
cmp dword [esi], 0
je 0x4011a7
mov eax, dword [esi + 4]
test eax, eax
je 0x4011a7
mov eax, dword [0x446d0c]
push str._n___n___Position_to_start_replication_from_n___n_n
push eax
call fcn.00413428
mov ecx, dword [esi]
mov edx, dword [0x446d0c]
push ecx
push str.CHANGE_MASTER_TO_MASTER_LOG_FILE_s___n
push edx
call fcn.00413428
mov eax, dword [esi + 4]
mov ecx, dword [0x446d0c]
push eax
push str.CHANGE_MASTER_TO_MASTER_LOG_POS_s___n
push ecx
call fcn.00413428
add esp, 0x20
push edi
call fcn.00404ab0
pop esi
jmp 0x4011ce
mov edx, dword [0x43e3f8]
push edx
call fcn.00406b90
push eax
push 0
push str.Error:_Couldnt_execute_SHOW_MASTER_STATUS:__s
push 0
call fcn.00406ea0
add esp, 0x10
mov eax, dword [0x43e3f8]
push str.FLUSH_MASTER
push eax
call fcn.00405bb0
test eax, eax
pop edi
je 0x401201
mov ecx, dword [0x43e3f8]
push ecx
call fcn.00406b90
push eax
push 0
push str.Error:_Couldnt_execute_FLUSH_MASTER:__s
push 0
call fcn.00406ea0
add esp, 0x10
mov edx, dword [0x43e3f8]
push 0x423638
push edx
call fcn.00405bb0
test eax, eax
je 0x401233
mov eax, dword [0x43e3f8]
push eax
call fcn.00406b90
push eax
push 0
push str.Error:_Couldnt_execute_UNLOCK_TABLES:__s
push 0
call fcn.00406ea0
add esp, 0x10
mov ecx, dword [0x43e404]
push ecx
call fcn.00401c60
mov edx, dword [0x446d0c]
push edx
push 0x423608
call fcn.004133da
mov eax, dword [0x446d0c]
add esp, 0xc
cmp eax, 0x437600
je 0x40126a
push 0
push eax
call fcn.00404510
add esp, 8
mov eax, dword [0x43e3fc]
push eax
call fcn.00404390
mov al, byte [0x43e3e1]
add esp, 4
test al, al
je 0x40128e
push 0x43b1d0
call fcn.004042e0
add esp, 4
push 0
call fcn.00406ff0
mov eax, dword [0x43e42c]
add esp, 4
ret