Function at 0x402681
Capabilities:
Accept command line arguments
Check if file exists
Execute command
Move file
Query environment variable

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x884
call fcn.004036d0
mov eax, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call eax
mov edx, eax
lea eax, [ebp - 0x5c]
mov dword [esp + 4], eax
mov dword [esp], edx
mov eax, dword [sym.imp.SHELL32.DLL_CommandLineToArgvW]
call eax
sub esp, 8
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x4026cc
mov dword [esp], str.Error_parsing_commandline_options__n
call fcn.00401588
mov eax, dword [ebp - 0x5c]
cmp eax, 3
jg 0x4026e9
mov eax, dword [ebp - 0x54]
mov eax, dword [eax]
mov dword [esp + 4], eax
mov dword [esp], str.Usage:__S__options..__nOptions:_n____crt__________________CreateRemoteThread_injection_n____apc__________________QueueUserAPC_injection_n____free_________________Do_not_inject_our_monitor_n____dll__dll_____________DLL_to_inject_n____app__app_____________Path_to_application_to_start_n____args__args___________Command_line_arguments_n_________________________Excluding_the_application_path__n____curdir__dirpath______Current_working_directory_n____maximize_____________Maximize_the_newly_created_GUI_n____pid__pid_____________Process_identifier_to_inject_n____process_name__name___Process_name_to_inject_n____tid__tid_____________Thread_identifier_to_inject_n____from__pid____________Inject_from_another_process_n____from_process__name___Inject_from_another_process__resolves_pid_n____only_start___________Start_the_application_and_print_pid_tid_n____resume_thread________Resume_the_thread_of_the_pid_tid_target_n____config__path_________Configuration_file_for_the_monitor_n____dbg__path____________Attach_debugger_to_target_process_n____dump__filepath_______Dump_process_memory_with___pid_to_filepath_n____dump_block__addr___length__Restrict_process_memory_dump_to_a_particular_block_n____verbose______________Verbose_switch_n
call fcn.00401588
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0x406884
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 1
jmp 0x402cee
mov eax, dword [ebp - 0x50]
lea edx, [eax*4]
mov eax, dword [ebp - 0x54]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 4], str.__crt
mov dword [esp], eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x4027a4
mov dword [ebp - 0x38], 1
jmp 0x402cea
mov eax, dword [ebp - 0x50]
lea edx, [eax*4]
mov eax, dword [ebp - 0x54]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 4], str.__apc
mov dword [esp], eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x4027d5
mov dword [ebp - 0x38], 2
jmp 0x402cea
mov eax, dword [ebp - 0x50]
lea edx, [eax*4]
mov eax, dword [ebp - 0x54]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 4], str.__free
mov dword [esp], eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x402806
mov dword [ebp - 0x38], 3
jmp 0x402cea
mov eax, dword [ebp - 0x50]
lea edx, [eax*4]
mov eax, dword [ebp - 0x54]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 4], str.__dll
mov dword [esp], eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x402848
add dword [ebp - 0x50], 1
mov eax, dword [ebp - 0x50]
lea edx, [eax*4]
mov eax, dword [ebp - 0x54]
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
jmp 0x402cea
mov eax, dword [ebp - 0x50]
lea edx, [eax*4]
mov eax, dword [ebp - 0x54]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 4], str.__app
mov dword [esp], eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x40288a
add dword [ebp - 0x50], 1
mov eax, dword [ebp - 0x50]
lea edx, [eax*4]
mov eax, dword [ebp - 0x54]
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
jmp 0x402cea
mov eax, dword [ebp - 0x50]
lea edx, [eax*4]
mov eax, dword [ebp - 0x54]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 4], str.__args
mov dword [esp], eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x4028cc
add dword [ebp - 0x50], 1
mov eax, dword [ebp - 0x50]
lea edx, [eax*4]
mov eax, dword [ebp - 0x54]
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
jmp 0x402cea
mov eax, dword [ebp - 0x50]
lea edx, [eax*4]
mov eax, dword [ebp - 0x54]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 4], str.__curdir
mov dword [esp], eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x40290e
add dword [ebp - 0x50], 1
mov eax, dword [ebp - 0x50]
lea edx, [eax*4]
mov eax, dword [ebp - 0x54]
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
jmp 0x402cea
mov eax, dword [ebp - 0x50]
lea edx, [eax*4]
mov eax, dword [ebp - 0x54]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 4], str.__maximize
mov dword [esp], eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x40293f
mov dword [ebp - 0x3c], 3
jmp 0x402cea
mov eax, dword [ebp - 0x50]
lea edx, [eax*4]
mov eax, dword [ebp - 0x54]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 4], str.__pid
mov dword [esp], eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x402999
add dword [ebp - 0x50], 1
mov eax, dword [ebp - 0x50]
lea edx, [eax*4]
mov eax, dword [ebp - 0x54]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_wcstol
mov dword [ebp - 0x30], eax
jmp 0x402cea
mov eax, dword [ebp - 0x50]
lea edx, [eax*4]
mov eax, dword [ebp - 0x54]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 4], str.__process_name
mov dword [esp], eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x4029db
add dword [ebp - 0x50], 1
mov eax, dword [ebp - 0x50]
lea edx, [eax*4]
mov eax, dword [ebp - 0x54]
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
jmp 0x402cea
mov eax, dword [ebp - 0x50]
lea edx, [eax*4]
mov eax, dword [ebp - 0x54]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 4], str.__tid
mov dword [esp], eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x402a35
add dword [ebp - 0x50], 1
mov eax, dword [ebp - 0x50]
lea edx, [eax*4]
mov eax, dword [ebp - 0x54]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_wcstol
mov dword [ebp - 0x60], eax
jmp 0x402cea
mov eax, dword [ebp - 0x50]
lea edx, [eax*4]
mov eax, dword [ebp - 0x54]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 4], str.__from
mov dword [esp], eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x402a8f
add dword [ebp - 0x50], 1
mov eax, dword [ebp - 0x50]
lea edx, [eax*4]
mov eax, dword [ebp - 0x54]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_wcstol
mov dword [ebp - 0x34], eax
jmp 0x402cea
mov eax, dword [ebp - 0x50]
lea edx, [eax*4]
mov eax, dword [ebp - 0x54]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 4], str.__from_process
mov dword [esp], eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x402ad1
add dword [ebp - 0x50], 1
mov eax, dword [ebp - 0x50]
lea edx, [eax*4]
mov eax, dword [ebp - 0x54]
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
jmp 0x402cea
mov eax, dword [ebp - 0x50]
lea edx, [eax*4]
mov eax, dword [ebp - 0x54]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 4], str.__only_start
mov dword [esp], eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x402b09
mov dword [ebp - 0x38], 4
mov dword [ebp - 0x40], 1
jmp 0x402cea
mov eax, dword [ebp - 0x50]
lea edx, [eax*4]
mov eax, dword [ebp - 0x54]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 4], str.__resume_thread
mov dword [esp], eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x402b41
mov dword [ebp - 0x38], 4
mov dword [ebp - 0x44], 1
jmp 0x402cea
mov eax, dword [ebp - 0x50]
lea edx, [eax*4]
mov eax, dword [ebp - 0x54]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 4], str.__config
mov dword [esp], eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x402b83
add dword [ebp - 0x50], 1
mov eax, dword [ebp - 0x50]
lea edx, [eax*4]
mov eax, dword [ebp - 0x54]
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
jmp 0x402cea
mov eax, dword [ebp - 0x50]
lea edx, [eax*4]
mov eax, dword [ebp - 0x54]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 4], str.__dbg
mov dword [esp], eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x402bc5
add dword [ebp - 0x50], 1
mov eax, dword [ebp - 0x50]
lea edx, [eax*4]
mov eax, dword [ebp - 0x54]
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
jmp 0x402cea
mov eax, dword [ebp - 0x50]
lea edx, [eax*4]
mov eax, dword [ebp - 0x54]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 4], str.__dump
mov dword [esp], eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x402c07
add dword [ebp - 0x50], 1
mov eax, dword [ebp - 0x50]
lea edx, [eax*4]
mov eax, dword [ebp - 0x54]
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
jmp 0x402cea
mov eax, dword [ebp - 0x50]
lea edx, [eax*4]
mov eax, dword [ebp - 0x54]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 4], str.__dump_block
mov dword [esp], eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x402c8e
add dword [ebp - 0x50], 1
mov eax, dword [ebp - 0x50]
lea edx, [eax*4]
mov eax, dword [ebp - 0x54]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004046f0
mov dword [ebp - 0x48], eax
add dword [ebp - 0x50], 1
mov eax, dword [ebp - 0x50]
lea edx, [eax*4]
mov eax, dword [ebp - 0x54]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004046f0
mov dword [ebp - 0x4c], eax
jmp 0x402cea
mov eax, dword [ebp - 0x50]
lea edx, [eax*4]
mov eax, dword [ebp - 0x54]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 4], str.__verbose
mov dword [esp], eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x402cbf
mov dword [0x408040], 1
jmp 0x402cea
mov eax, dword [ebp - 0x50]
lea edx, [eax*4]
mov eax, dword [ebp - 0x54]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 4], eax
mov dword [esp], str.____Found_unsupported_argument:__S_n
call fcn.00401588
mov eax, 1
jmp 0x4031f8
add dword [ebp - 0x50], 1
mov eax, dword [ebp - 0x5c]
cmp dword [ebp - 0x50], eax
jl 0x402773
cmp dword [ebp - 0x2c], 0
je 0x402d30
cmp dword [ebp - 0x30], 0
je 0x402d30
mov eax, dword [ebp - 0x4c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x48]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call fcn.004023ed
mov eax, 0
jmp 0x4031f8
cmp dword [ebp - 0x38], 0
jne 0x402d42
mov dword [esp], str.____No_injection_method_has_been_provided__n
call fcn.00401588
cmp dword [ebp - 0x38], 1
jne 0x402d66
cmp dword [ebp - 0x30], 0
jne 0x402d66
cmp dword [ebp - 0x28], 0
jne 0x402d66
cmp dword [ebp - 0x10], 0
jne 0x402d66
mov dword [esp], str.____No_injection_target_has_been_provided__n
call fcn.00401588
cmp dword [ebp - 0x38], 2
jne 0x402d8b
mov eax, dword [ebp - 0x60]
test eax, eax
jne 0x402d8b
cmp dword [ebp - 0x28], 0
jne 0x402d8b
cmp dword [ebp - 0x10], 0
jne 0x402d8b
mov dword [esp], str.____No_injection_target_has_been_provided__n
call fcn.00401588
cmp dword [ebp - 0x38], 3
jne 0x402da3
cmp dword [ebp - 0x10], 0
jne 0x402da3
mov dword [esp], str.____An_app_path_is_required_when_not_injecting__n
call fcn.00401588
cmp dword [ebp - 0x30], 0
je 0x402dbb
cmp dword [ebp - 0x28], 0
je 0x402dbb
mov dword [esp], str.____Both_pid_and_process_name_were_set__n
call fcn.00401588
cmp dword [ebp - 0x38], 3
jne 0x402de0
cmp dword [ebp - 0xc], 0
jne 0x402dd4
mov eax, dword [ebp - 0x60]
test eax, eax
jne 0x402dd4
cmp dword [ebp - 0x30], 0
je 0x402de0
mov dword [esp], str.____Unused___tid___pid___dll_provided_in___free_mode__n
call fcn.00401588
cmp dword [ebp - 0x38], 4
je 0x402e7d
cmp dword [ebp - 0x38], 3
je 0x402e7d
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.SHLWAPI.DLL_PathFileExistsW]
call eax
sub esp, 4
test eax, eax
jne 0x402e14
mov dword [esp], str.____Invalid_DLL_filepath_has_been_provided_n
call fcn.00401588
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x408080
mov dword [esp + 4], 0x7fff
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
call eax
sub esp, 0x10
test eax, eax
jne 0x402e4c
mov dword [esp], str.____Invalid_DLL_filepath_has_been_provided_n
call fcn.00401588
mov dword [esp + 8], 0x7fff
mov dword [esp + 4], 0x408080
mov dword [esp], 0x408080
mov eax, dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
call eax
sub esp, 0xc
test eax, eax
jne 0x402e7d
mov dword [esp], str.____Error_obtaining_the_dll_long_path_name_n
call fcn.00401588
cmp dword [ebp - 0x34], 0
je 0x402e95
cmp dword [ebp - 0x1c], 0
je 0x402e95
mov dword [esp], str.____Both___from_and___from_process_are_specified_n
call fcn.00401588
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call eax
mov dword [esp], eax
call fcn.004021df
cmp dword [ebp - 0x10], 0
je 0x40301e
cmp dword [ebp - 0x1c], 0
je 0x402ec2
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.004022f6
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x402ed2
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.SHLWAPI.DLL_PathFileExistsW]
call eax
sub esp, 4
test eax, eax
jne 0x402ef2
mov dword [esp], str.____Invalid_app_filepath_has_been_provided_n
call fcn.00401588
cmp dword [ebp - 0x24], 0
je 0x402f31
mov dword [esp + 8], 0x7fff
mov dword [esp + 4], 0x418080
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call eax
sub esp, 0xc
test eax, eax
jne 0x402f28
mov dword [esp], str.____Error_expanding_environment_variables_n
call fcn.00401588
mov dword [ebp - 0x24], 0x418080
jmp 0x402f52
mov dword [esp], str.TEMP
mov eax, dword [sym.imp.msvcrt.dll__wgetenv]
call eax
mov dword [esp + 4], eax
mov dword [esp], 0x418080
call sub.msvcrt.dll_wcscpy
mov dword [ebp - 0x24], eax
mov dword [esp + 8], 0x7fff
mov dword [esp + 4], 0x418080
mov dword [esp], 0x418080
mov eax, dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
call eax
sub esp, 0xc
test eax, eax
jne 0x402f83
mov dword [esp], str.____Error_obtaining_the_curdir_long_path_name_n
call fcn.00401588
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x428080
mov dword [esp + 4], 0x7fff
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
call eax
sub esp, 0x10
test eax, eax
jne 0x402fbb
mov dword [esp], str.____Invalid_app_filepath_has_been_provided_n
call fcn.00401588
mov dword [esp + 8], 0x7fff
mov dword [esp + 4], 0x428080
mov dword [esp], 0x428080
mov eax, dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
call eax
sub esp, 0xc
test eax, eax
jne 0x402fec
mov dword [esp], str.____Error_obtaining_the_app_long_path_name_n
call fcn.00401588
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x60]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x428080
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call fcn.00401b7d
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x403038
cmp dword [ebp - 0x28], 0
je 0x403038
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call fcn.004022f6
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x18], 0
je 0x4030c8
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], eax
mov dword [esp + 4], str.C:cuckoo__d.ini
mov dword [esp], 0x438080
mov eax, dword [sym.imp.USER32.dll_wsprintfW]
call eax
mov dword [esp + 4], 0x438080
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_MoveFileW]
call eax
sub esp, 8
test eax, eax
jne 0x4030a1
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0xb7
je 0x4030a1
mov eax, dword [ebp - 0x58]
mov dword [esp + 4], eax
mov dword [esp], str.____Error_dropping_configuration_file:__ld_n
call fcn.00401588
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], eax
mov dword [esp + 4], str.icacls_C:cuckoo__d.ini__grant__everyone_:F
mov dword [esp], 0x448080
call sub.msvcrt.dll_sprintf
mov dword [esp], 0x448080
call sub.msvcrt.dll_system
cmp dword [ebp - 0x40], 0
je 0x4030f2
mov eax, dword [ebp - 0x60]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
mov dword [esp], str._d__d
call sub.msvcrt.dll_printf
mov eax, 0
jmp 0x4031f8
mov eax, dword [ebp - 0x38]
cmp eax, 2
je 0x403119
cmp eax, 3
je 0x40314a
cmp eax, 1
jne 0x403135
mov dword [esp + 4], 0x408080
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call fcn.00401f1c
jmp 0x40314b
mov eax, dword [ebp - 0x60]
mov dword [esp + 8], 0x408080
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call fcn.0040207d
jmp 0x40314b
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], eax
mov dword [esp], str.____Unhandled_injection_mode:__d_n
call fcn.00401588
jmp 0x40314b
nop
cmp dword [ebp - 0x20], 0
je 0x4031c2
mov eax, dword [ebp - 0x30]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 8], eax
mov dword [esp + 4], str.__s___p__d
lea eax, [ebp - 0x860]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_wsprintfW]
call eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call eax
mov edx, eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
lea eax, [ebp - 0x860]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.00401b7d
mov dword [esp], 0x1388
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
cmp dword [ebp - 0x10], 0
jne 0x4031ce
cmp dword [ebp - 0x44], 0
je 0x4031e0
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x4031e0
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call fcn.004021a9
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
mov dword [esp], 0x406d10
call sub.msvcrt.dll_printf
mov eax, 0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret