Function at 0x1400034f0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x528
mov rax, qword [0x14037ac60]
xor rax, rsp
mov qword [rsp + 0x510], rax
mov dword [rsp + 0x40], ecx
mov qword [rsp + 0x48], rdx
mov rax, qword [rdx]
mov qword [0x1403835b8], rax
call fcn.140021f50
lea r9, [rsp + 0x48]
mov dword [0x140383aa0], 1
lea r8, [rsp + 0x40]
lea rdx, str.mysqlslap
lea rcx, [0x140065a88]
call fcn.140022c80
test eax, eax
je 0x140003572
xor ecx, ecx
cmp eax, 4
je 0x140003564
call fcn.140021e00
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call fcn.140021e00
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rax, qword [rsp + 0x48]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
mov qword [0x14037adc0], rax
call fcn.140002950
test eax, eax
je 0x1400035b0
mov rcx, qword [0x14037adc0]
call fcn.140022890
xor ecx, ecx
call fcn.140021e00
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov qword [rsp + 0x540], rbx
xor ebx, ebx
cmp byte [0x14037ad6a], bl
mov dword [0x140383aa0], ebx
je 0x1400035d9
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
cmp dword [rsp + 0x40], 2
jle 0x140003620
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x1403835b8]
lea rdx, str._s:_Too_many_arguments_n
mov rcx, rax
call fcn.1400023b0
mov rcx, qword [0x14037adc0]
call fcn.140022890
xor ecx, ecx
call fcn.140021e00
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rcx, [rsp + 0x50]
call fcn.140005f90
lea rcx, [rsp + 0x50]
call fcn.140004900
mov r8, qword [0x14037ad58]
test r8, r8
je 0x140003654
cmp byte [r8], bl
je 0x140003654
mov edx, reloc.WS2_32.dll_shutdown
lea rcx, [rsp + 0x50]
call fcn.1400072b0
mov r8, qword [0x14037ad60]
test r8, r8
je 0x140003674
cmp byte [r8], bl
je 0x140003674
mov edx, reloc.WS2_32.dll_socket
lea rcx, [rsp + 0x50]
call fcn.1400072b0
xor r8d, r8d
lea rcx, [rsp + 0x50]
lea edx, [r8 + 0x20]
call fcn.1400072b0
lea r9, str.mysqlslap
mov edx, 0x21
lea r8, str.program_name
lea rcx, [rsp + 0x50]
call fcn.1400072b0
cmp byte [0x14037acc5], bl
jne 0x140003751
mov eax, dword [0x1401c2024]
lea rcx, [rsp + 0x50]
mov r9, qword [0x14037adc8]
mov r8, qword [0x14037ad10]
mov rdx, qword [0x14037ad08]
mov dword [rsp + 0x38], eax
mov rax, qword [0x14037ad48]
mov qword [rsp + 0x30], rax
mov eax, dword [0x14037adb8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call fcn.140006400
test rax, rax
jne 0x140003751
lea rcx, [rsp + 0x50]
call fcn.1400059a0
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x1403835b8]
lea rdx, str._s:_Error_when_connecting_to_server:__s_n
mov rcx, rax
mov r9, rbx
call fcn.1400023b0
lea rcx, [rsp + 0x50]
call fcn.140006760
mov rcx, qword [0x14037adc0]
call fcn.140022890
xor ecx, ecx
call fcn.140021e00
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rcx, [0x140384160]
mov qword [rsp + 0x520], rdi
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor edx, edx
lea rcx, [0x140384150]
call fcn.140020fb0
lea rcx, [0x140384120]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor edx, edx
lea rcx, [0x140384100]
call fcn.140020fb0
mov rdi, qword [0x14037ade8]
cmp dword [0x14037ad6c], 2
jl 0x1400037ab
lea rcx, str.Starting_Concurrency_Test_n
call fcn.1400040a0
mov rbx, qword [0x1403840d8]
cmp dword [rbx], 0
je 0x1400037db
test rbx, rbx
je 0x1400037f7
nop dword [rax]
mov edx, dword [rbx]
test edx, edx
je 0x1400037f7
mov r8, rdi
lea rcx, [rsp + 0x50]
call fcn.140001c60
add rbx, 4
jne 0x1400037c0
jmp 0x1400037f7
mov ebx, 1
mov r8, rdi
lea rcx, [rsp + 0x50]
mov edx, ebx
call fcn.140001c60
mov eax, ebx
inc ebx
test eax, eax
jne 0x1400037e0
cmp byte [0x1401c2020], 0
jne 0x140003811
mov rdx, qword [str.mysqlslap]
lea rcx, [rsp + 0x50]
call fcn.1400022f0
test rdi, rdi
je 0x140003823
mov rdi, qword [rdi + 0x20]
test rdi, rdi
jne 0x140003796
lea rcx, [0x140384160]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x140384150]
call fcn.14000fc90
lea rcx, [0x140384120]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x140384100]
call fcn.14000fc90
lea rcx, [rsp + 0x50]
call fcn.140006760
mov rcx, qword [0x14037adc8]
call fcn.140021540
mov rcx, qword [0x1403840d8]
call fcn.140021540
mov rcx, qword [0x14037b008]
call fcn.140004ac0
mov rcx, qword [0x14037b010]
call fcn.140004ac0
mov rcx, qword [0x14037aff8]
call fcn.140004ac0
mov rcx, qword [0x14037b000]
call fcn.140004ac0
mov rcx, qword [0x14037ade8]
call fcn.140003900
mov rcx, qword [0x14037adc0]
call fcn.140022890
call fcn.1400075a0
mov ecx, dword [0x14037add8]
call fcn.140021e00
mov rdi, qword [rsp + 0x520]
xor eax, eax
mov rbx, qword [rsp + 0x540]
mov rcx, qword [rsp + 0x510]
xor rcx, rsp
call fcn.1400623a0
add rsp, 0x528
ret