Function at 0x437870
Capabilities:
Create pipe
Get hostname
Initialize winsock library
Terminate process

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x28
push ebx
mov dword [0x5f4dc0], 0x1b0
mov dword [0x5f4dc4], 0x1c0
mov ecx, dword [eax]
push esi
push edi
mov dword [0x628a14], ecx
call fcn.004cf2e0
call fcn.0059c79c
xor ebx, ebx
push ebx
call fcn.0059a77b
lea edx, [esp + 0x14]
push edx
push 0x625f80
mov dword [0x625f80], eax
call fcn.004c6e60
mov ecx, dword [esp + 0x3c]
xor eax, eax
cmp ecx, ebx
setne al
mov ecx, dword [eax*4 + 0x6237dc]
push ecx
push 0x626f7c
call fcn.004d5a76
add esp, 0x14
mov ecx, 0x625388
call fcn.0042e510
mov ecx, 0x625980
call fcn.0042e510
mov ecx, 0x624798
call fcn.0042e510
mov ecx, 0x624d90
call fcn.0042e510
push 0x1fc
push 0x6264c8
call sub.WSOCK32.dll_gethostname
test eax, eax
jge 0x437929
push str.mysql
push 0x6264c8
call fcn.004d5a76
add esp, 8
push 0x1fb
push 0x6264c8
push 0x627144
call fcn.004d59fe
add esp, 0xc
push str..pid
push 0x627144
call fcn.004caeb0
add esp, 4
push eax
call fcn.004d5a76
add esp, 8
push 0x5e5e98
push str.4.0.17
call fcn.004d590e
add esp, 4
push eax
call fcn.004d5a76
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x44]
push eax
push 0x5dc22c
push 0x5e5e94
call fcn.004d0c90
mov ecx, dword [esp + 0x54]
push str.TMPDIR
mov dword [0x626f0c], ecx
call fcn.0059ade7
add esp, 0x1c
cmp eax, ebx
mov dword [0x627864], eax
jne 0x4379d8
push str.TEMP
call fcn.0059ade7
add esp, 4
cmp eax, ebx
mov dword [0x627864], eax
jne 0x4379d8
push 0x5e5e80
call fcn.0059ade7
add esp, 4
cmp eax, ebx
mov dword [0x627864], eax
je 0x4379dc
cmp byte [eax], bl
jne 0x4379e6
mov dword [0x627864], 0x5e5e7c
call fcn.00439220
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push edx
push eax
call fcn.0043a2d0
mov eax, dword [0x626e74]
add esp, 8
cmp eax, ebx
jne 0x437a1e
cmp dword [0x626d40], ebx
jne 0x437a1e
cmp dword [0x626d38], ebx
jne 0x437a1e
cmp dword [0x627400], ebx
je 0x437a4b
or ecx, 0xffffffff
xor eax, eax
mov edi, str._log
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
or ecx, 0xffffffff
mov esi, edi
mov edi, str.4.0.17
repne scasb al, byte es:[edi]
mov ecx, edx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x626e80
call esi
push 0x626ef0
call esi
push 0x6269f0
call esi
push 0x626700
call esi
push 0x627748
call esi
push 0x626f38
call esi
push 0x6267d0
call esi
push 0x626718
call esi
push 0x6266e8
call esi
push 0x626138
call esi
push 0x6263b8
call esi
push 0x628870
call esi
push 0x627428
call esi
push 0x626f20
call esi
push 0x627408
call esi
push 0x6266c8
call esi
push 0x6278b0
call esi
push 0x6260e0
call esi
push 0x626f50
call esi
push ebx
push 0x6267c8
call fcn.004c6ca0
push ebx
push 0x627000
call fcn.004c6ca0
push ebx
push 0x626110
call fcn.004c6ca0
push ebx
push 0x626108
call fcn.004c6ca0
push ebx
push 0x628888
call fcn.004c6ca0
push ebx
push 0x6278c8
call fcn.004c6ca0
call fcn.004385d0
mov eax, dword [0x627a24]
push 0x10
push eax
call fcn.004d0960
add esp, 0x38
test al, al
je 0x437b38
push 1
call fcn.0059b255
push 3
call fcn.004d0990
mov dword [0x6263ac], eax
mov al, byte [0x5dc150]
add esp, 4
test al, 0x80
jne 0x437b5f
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0x626370
call fcn.004c6e20
push ebx
call fcn.004d1950
mov ecx, dword [0x626e58]
push ecx
push 0x626370
call fcn.004c6e40
mov al, byte [0x5dc150]
add esp, 0x10
test al, 0x80
jne 0x437b9a
push ebx
push 0x626370
call fcn.004c6e50
add esp, 8
mov edx, dword [0x5dc150]
push ebp
push edx
mov dword [0x6277e0], ebx
call fcn.00418670
add esp, 4
call fcn.00401120
call fcn.00463000
call fcn.00418760
call fcn.00447b60
mov byte [0x630eb4], bl
call fcn.004dd840
call fcn.004c7060
mov eax, dword [eax + 0x2c]
mov ebp, 1
mov dword [0x62734c], eax
mov dword [0x626100], ebp
cmp byte [0x627870], bl
je 0x437c0f
push ebp
push 0x400
push 0x6260b8
call fcn.004cefc0
add esp, 0xc
test al, al
je 0x437c0f
push ebp
call fcn.00437110
add esp, 4
mov ecx, dword [0x5f4dc0]
not ecx
and ecx, 0x1b6
push ecx
call fcn.005a8de9
push 0x626168
call fcn.00466bd0
push 0x10
push 0x626168
call fcn.004d1850
add esp, 0x10
test eax, eax
je 0x437c49
push ebp
call fcn.00437110
add esp, 4
mov dword [0x5dc1ac], 0x627348
mov byte [0x627348], 0x2e
mov byte [0x627349], bl
call fcn.00438280
call fcn.00455ff0
call fcn.00418140
mov eax, dword [0x6277f0]
mov edx, dword [0x6277f4]
push eax
mov ecx, 0x6263d8
mov dword [0x6263dc], edx
call fcn.0045a010
mov eax, dword [0x625f80]
mov ecx, eax
shr ecx, 1
push ecx
push eax
push 0x626d20
call fcn.00441a60
add esp, 0xc
call fcn.004c98d0
call fcn.00442920
cmp dword [0x626e74], ebx
je 0x437cd9
mov edx, dword [0x627788]
push ebx
push ebx
push ebx
push 2
push ebx
push str..log
push edx
push 0x6264c8
push 0x625388
call fcn.004377a0
add esp, 0x24
cmp dword [0x626d40], ebx
je 0x437d0a
mov eax, dword [0x62778c]
push ebx
push ebx
push ebx
push 3
push ebx
push 0x6244e8
push eax
push 0x6264c8
push 0x625980
call fcn.004377a0
add esp, 0x24
mov dword [0x627544], ebp
cmp dword [0x626d38], ebx
je 0x437d36
mov ecx, dword [0x627794]
push ebx
push ebx
push ebx
push 2
push ebx
push str._slow.log
push ecx
push 0x6264c8
push 0x624798
call fcn.004377a0
add esp, 0x24
cmp dword [0x5dc148], ebx
je 0x437dba
mov eax, dword [0x5dc164]
cmp byte [eax], bl
jne 0x437d5b
mov edx, dword [0x5dc1ac]
push ebx
push str..err
push edx
push 0x6264c8
jmp 0x437d6a
mov ecx, dword [0x5dc1ac]
push 0x44
push str..err
push ecx
push eax
push 0x6267e8
call fcn.004c6a10
mov al, byte [0x6267e8]
add esp, 0x14
cmp al, bl
jne 0x437d88
mov dword [0x5dc148], ebp
jmp 0x437dba
push 0x620ab0
push 0x5db8a8
push 0x6267e8
call fcn.0059ad72
add esp, 0xc
test eax, eax
je 0x437dba
push 0x620ad0
push 0x5db8a8
push 0x6267e8
call fcn.0059ad72
add esp, 0xc
call fcn.00416c00
test eax, eax
je 0x437df6
push str.Cant_init_databases
call fcn.00430ba0
mov eax, dword [0x5dc154]
or edi, 0xffffffff
add esp, 4
cmp eax, edi
je 0x437deb
mov edx, dword [0x627860]
push edx
call fcn.005a8dde
add esp, 4
push ebp
call fcn.00437110
add esp, 4
jmp 0x437df9
or edi, 0xffffffff
call fcn.00418000
cmp byte [0x62779a], bl
mov dword [0x626ee0], ebx
je 0x437e15
push ebp
call fcn.004b6cc0
add esp, 4
call fcn.004b6a20
cmp byte [0x62779f], bl
jne 0x437e28
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push ebx
mov dword [fcn.004cc2c0], 0x4376d0
call fcn.004d1950
add esp, 4
test eax, eax
jne 0x437e59
push ebx
call fcn.004d1950
add esp, 4
test eax, eax
jne 0x437e59
push ebx
call fcn.004d1950
add esp, 4
test eax, eax
je 0x437e86
push str.Cant_create_thread_keys
call fcn.00430ba0
mov eax, dword [0x5dc154]
add esp, 4
cmp eax, edi
je 0x437e7d
mov eax, dword [0x627860]
push eax
call fcn.005a8dde
add esp, 4
push ebp
call fcn.00437110
add esp, 4
call fcn.00466bd0
movsx ecx, byte [0x627798]
push ecx
push ebx
call fcn.0044d210
add esp, 8
test al, al
je 0x437ed6
mov dword [0x6273e8], ebp
mov dword [0x626100], ebx
push ebx
call fcn.004d1950
mov eax, dword [0x5dc154]
add esp, 4
cmp eax, edi
je 0x437ecd
mov edx, dword [0x627860]
push edx
call fcn.005a8dde
add esp, 4
push ebp
call fcn.00437110
add esp, 4
cmp byte [0x627798], bl
jne 0x437ee7
push ebx
call fcn.00450f70
add esp, 4
call fcn.004667b0
call fcn.004667f0
cmp byte [0x627798], bl
jne 0x437efe
call fcn.004850c0
cmp byte [0x627799], bl
je 0x437f0d
mov byte [0x627778], 1
call fcn.00447fd0
cmp dword [0x627400], ebx
je 0x437f86
cmp dword [0x6277b4], ebx
jne 0x437f47
mov esi, dword [0x627800]
xor eax, eax
cmp esi, ebx
setne al
inc eax
mov dword [0x6277b4], eax
sub eax, 2
jne 0x437f47
push str.Warning:_You_should_set_server_id_to_a_non_0_value_if_master_host_is_set._nThe_server_will_not_act_as_a_slave.
call fcn.00430ba0
add esp, 4
cmp dword [0x627400], ebx
je 0x437f86
mov eax, dword [0x626e70]
mov ecx, dword [0x627790]
mov edx, dword [0x627850]
push eax
push ebx
push ebx
push 4
push ecx
push str._bin
push edx
push 0x6264c8
push 0x624d90
call fcn.004377a0
add esp, 0x24
mov dword [0x627544], ebp
jmp 0x437f9b
cmp byte [0x62779e], bl
je 0x437f9b
push str.Warning:_you_need_to_use___log_bin_to_make___log_slave_updates_work._Now_disabling___log_slave_updates.
call fcn.00430ba0
add esp, 4
cmp byte [0x627799], bl
je 0x437fc5
push 0x620a90
call fcn.00438a20
push ebp
mov esi, eax
call fcn.004cf2c0
xor eax, eax
cmp esi, ebx
setne al
push eax
call fcn.00437110
add esp, 0xc
mov eax, dword [0x626d18]
cmp eax, ebx
je 0x437fea
push eax
call fcn.00438b30
add esp, 4
test eax, eax
je 0x437fea
push ebp
call fcn.004cf2c0
push ebp
call fcn.00437110
add esp, 8
push ebx
call fcn.004d1950
add esp, 4
push 0x626eb4
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push 0x437750
lea ecx, [esp + 0x18]
push 0x626370
push ecx
mov dword [0x62712c], eax
call fcn.004d0ba0
add esp, 0x10
test eax, eax
je 0x43802f
push str.Warning:_Cant_create_thread_to_handle_shutdown_requests
call fcn.00430ba0
add esp, 4
mov eax, dword [0x6273ec]
cmp eax, ebx
mov edx, dword [0x62712c]
mov dword [0x626cdc], edx
je 0x438071
cmp eax, edi
je 0x438071
push ebx
push 0x4665f0
lea eax, [esp + 0x18]
push 0x626370
push eax
call fcn.004d0ba0
add esp, 0x10
test eax, eax
je 0x438071
push str.Warning:_Cant_create_thread_to_manage_maintenance
call fcn.00430ba0
add esp, 4
cmp dword [0x5dc154], edi
mov eax, 0x6244e8
je 0x438083
mov eax, dword [0x627860]
mov ecx, dword [0x6264c0]
mov edx, dword [0x628a14]
push ecx
push eax
mov eax, dword [0x626f14]
mov ecx, dword [eax + 0x130]
push str.4.0.17
push edx
push ecx
call fcn.0059a00d
push 0x620ab0
call fcn.0059aafb
mov eax, dword [0x5dc130]
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add esp, 0x18
cmp eax, 0xffffffff
jne 0x4380f3
cmp byte [0x6312f4], bl
je 0x4380db
cmp dword [0x62777c], ebx
je 0x4380f3
push str.TCP_IP_or___enable_named_pipe_should_be_configured_on_NT_OS
call fcn.00430ba0
push ebp
call fcn.00437110
add esp, 8
jmp 0x4381d5
push 0x627748
call esi
push ebx
push 0x626e60
call fcn.004c6ca0
mov eax, dword [0x5dc130]
add esp, 8
cmp eax, 0xffffffff
mov dword [0x6263a4], ebx
je 0x43815a
cmp byte [0x627784], bl
je 0x43815a
push ebx
push 0x439060
lea edx, [esp + 0x18]
push 0x626370
push edx
mov dword [0x6263a4], ebp
call fcn.004d0ba0
add esp, 0x10
test eax, eax
je 0x43815a
push str.Warning:_Cant_create_thread_to_handle_named_pipes
call fcn.00430ba0
mov eax, dword [0x6263a4]
add esp, 4
dec eax
mov dword [0x6263a4], eax
cmp byte [0x6312f4], bl
je 0x4381ab
cmp dword [0x62777c], ebx
jne 0x4381ab
mov ebp, dword [0x6263a4]
push ebx
push 0x438b70
lea eax, [esp + 0x18]
push 0x626370
inc ebp
push eax
mov dword [0x6263a4], ebp
call fcn.004d0ba0
add esp, 0x10
test eax, eax
je 0x4381ab
push str.Warning:_Cant_create_thread_to_handle_named_pipes
call fcn.00430ba0
mov eax, dword [0x6263a4]
add esp, 4
dec eax
mov dword [0x6263a4], eax
cmp dword [0x6263a4], ebx
jbe 0x4381ce
push 0x627748
push 0x626e60
call fcn.004c6cf0
mov eax, dword [0x6263a4]
add esp, 8
cmp eax, ebx
ja 0x4381b3
push 0x627748
call edi
push 0x627748
call esi
cmp dword [0x626fa4], ebx
pop ebp
jne 0x4381ff
push 0x627748
push 0x6267c8
call fcn.004c6cf0
add esp, 8
cmp dword [0x626fa4], ebx
je 0x4381e5
push 0x627748
call edi
cmp dword [0x626c10], ebx
je 0x438222
cmp dword [0x627764], ebx
je 0x438222
mov ecx, 0x626c10
call fcn.0043bfb0
jmp 0x438238
mov eax, dword [0x62712c]
cmp eax, ebx
mov dword [0x626cdc], ebx
je 0x438238
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
cmp dword [0x626d4c], ebx
je 0x43825f
push ebx
call fcn.004d1950
add esp, 4
test eax, eax
jne 0x43825f
push 0x64
call fcn.004d1770
add esp, 4
inc esi
cmp esi, 0x64
jb 0x43823a
call fcn.00437300
mov ecx, dword [0x6263a0]
neg ecx
sbb ecx, ecx
and ecx, 3
push ecx
call fcn.004cf3f0
add esp, 4
push ebx
call fcn.0059b255