Function at 0x405bd0
Capabilities:
Accept command line arguments
Create process on windows
Delete directory
Delete file
Move file
Print debug messages
Resolve function by parsing pe exports
Schedule task via at

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c4
mov eax, dword [0x41c054]
xor eax, esp
mov dword [esp + 0x8c0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
push str.OC_exe_built:__Oct_30_2014__19:07:10
mov dword [esp + 0x74], eax
mov dword [esp + 0x64], ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
fld dword [0x41a3b4]
fstp dword [esp + 0x88]
xor esi, esi
fld dword [0x41a3b0]
mov dword [esp + 0x7c], esi
fstp dword [esp + 0x8c]
mov dword [esp + 0x80], esi
fld dword [0x41a3ac]
mov dword [esp + 0x84], 0x11
fstp dword [esp + 0x90]
mov dword [esp + 0x9c], esi
mov dword [esp + 0xa0], 0xa
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa8], esi
mov dword [esp + 0x94], 0x26
mov dword [esp + 0x98], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, dword [0x41cea0]
mov ebx, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x41cea0
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x2c], edi
cmp ebx, esi
je 0x405cc0
test ebx, 0xffff0000
jne 0x405cc4
movzx ebx, bx
push ebx
call fcn.00408610
add esp, 4
cmp eax, esi
je 0x405cef
push eax
mov eax, ebx
lea edi, [esp + 0x30]
call fcn.00407b70
jmp 0x405ceb
xor eax, eax
jmp 0x405cdf
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x405cd0
sub eax, edx
sar eax, 1
push ebx
mov edi, eax
lea ebx, [esp + 0x30]
call fcn.00407960
mov edi, dword [esp + 0x2c]
mov edx, dword [0x41cea0]
mov eax, dword [edx + 0xc]
mov ecx, 0x41cea0
call eax
lea ecx, [esp + 0x6c]
push ecx
add eax, 0x10
push edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x74], esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
mov dword [esp + 0x58], edi
cmp edi, esi
je 0x405fe9
cmp dword [esp + 0x6c], esi
jle 0x405fe9
mov edx, dword [0x41cea0]
mov eax, dword [edx + 0xc]
mov ecx, 0x41cea0
call eax
mov edx, dword [0x41cea0]
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x41cea0
call eax
add eax, 0x10
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x18], eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x3c]
push eax
push str.exePath
lea eax, [esp + 0x8c]
call fcn.00407fb0
cmp eax, esi
jne 0x405dba
push 1
push 0x11
lea ecx, [esp + 0x84]
push ecx
call fcn.00408070
test al, al
jne 0x405d9f
push 0x8007000e
call fcn.00408810
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
push edx
push str.exePath
lea eax, [esp + 0x84]
push eax
call fcn.00408310
mov edx, dword [edi]
lea ebx, [eax + 4]
cmp edx, esi
jne 0x405dc7
xor eax, eax
jmp 0x405ddf
mov eax, edx
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x405dd0
sub eax, edi
sar eax, 1
push edx
mov edi, eax
call fcn.00407960
mov eax, 1
mov dword [esp + 0x18], eax
cmp dword [esp + 0x6c], eax
jle 0x405fa9
lea ebx, [ebx]
mov ecx, dword [esp + 0x14]
mov edi, dword [ecx - 0x10]
cmp dword [ecx - 0xc], esi
lea eax, [ecx - 0x10]
je 0x405e50
cmp dword [eax + 0xc], esi
lea edx, [eax + 0xc]
jge 0x405e2a
cmp dword [ecx - 8], esi
jl 0x40614d
xor edx, edx
mov dword [ecx - 0xc], esi
mov word [ecx], dx
jmp 0x405e50
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405e40
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x18]
mov edx, dword [ecx + edx*4]
cmp edx, esi
jne 0x405e63
xor eax, eax
jmp 0x405e7f
mov eax, edx
lea edi, [eax + 2]
jmp 0x405e70
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x405e70
sub eax, edi
sar eax, 1
push edx
mov edi, eax
lea ebx, [esp + 0x14]
call fcn.00407960
call fcn.004076f0
mov ebx, eax
call fcn.00407770
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
cmp eax, esi
je 0x405f96
jl 0x40614d
movzx eax, word [ecx]
push eax
call fcn.00408f01
add esp, 4
test eax, eax
jne 0x405f4a
lea ebx, [esp + 0x10]
call fcn.00407230
mov eax, ebx
lea ecx, [esp + 0x30]
call fcn.00407180
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xe8]
push ecx
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x3c]
push ecx
mov edi, eax
push eax
lea eax, [esp + 0x8c]
call fcn.00407fb0
cmp eax, esi
jne 0x405f39
cmp dword [esp + 0x7c], esi
jne 0x405f22
mov edx, dword [esp + 0x84]
push 1
push edx
lea eax, [esp + 0x84]
push eax
call fcn.00408070
test al, al
je 0x405d95
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x38]
push edi
lea edx, [esp + 0x84]
push edx
call fcn.00408310
lea ebx, [eax + 4]
push 0x41a38c
xor edi, edi
call fcn.00407960
jmp 0x405f96
mov eax, dword [esp + 0x30]
cmp dword [eax - 0xc], esi
je 0x405f96
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
call fcn.00407180
lea eax, [esp + 0x30]
lea ecx, [esp + 0x10]
call fcn.00407180
lea esi, [esp + 0x30]
call fcn.00407690
mov edi, dword [esp + 0x10]
cmp dword [edi - 0xc], 0
je 0x405f94
lea esi, [esp + 0x7c]
call fcn.00407cf0
mov ecx, eax
lea eax, [esp + 0x14]
call fcn.00407180
xor esi, esi
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x6c]
jl 0x405e00
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405fc9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405fe9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x41cea0]
mov eax, dword [edx + 0xc]
mov ecx, 0x41cea0
call eax
mov edx, dword [0x41cea0]
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x41cea0
call eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea ecx, [esp + 0x20]
lea edi, [eax + 0x10]
push ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0xf0], esi
call ebx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push esi
push 0x2710
push eax
push ecx
call fcn.004116e0
mov dword [esp + 0x24], edx
lea edx, [esp + 0xe8]
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0xec], esi
mov dword [esp + 0xf0], esi
mov dword [esp + 0x60], esi
call ebx
mov eax, dword [esp + 0xec]
mov ecx, dword [esp + 0xe8]
push esi
push 0x2710
push eax
push ecx
call fcn.004116e0
sub eax, dword [esp + 0x20]
sbb edx, dword [esp + 0x24]
push edx
push eax
lea eax, [esp + 0x100]
push str._nBegin_extraction__d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [esp + 0xf8]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x8a
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea ecx, [esp + 0x14]
mov edx, eax
call fcn.00405a40
add esp, 4
lea edx, [esp + 0xe8]
mov dword [esp + 0xe8], esi
mov dword [esp + 0xec], esi
push edx
test eax, eax
jne 0x406157
mov dword [esp + 0x78], esi
call ebx
mov eax, dword [esp + 0xec]
mov ecx, dword [esp + 0xe8]
push esi
push 0x2710
push eax
push ecx
call fcn.004116e0
sub eax, dword [esp + 0x20]
sbb edx, dword [esp + 0x24]
push edx
push eax
lea eax, [esp + 0x100]
push str._n_Fail_DLL_extraction__d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [esp + 0xf8]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x406cc8
push 0x80070057
call fcn.00408810
mov dword [esp + 0x60], esi
call ebx
mov eax, dword [esp + 0xec]
mov ecx, dword [esp + 0xe8]
push esi
push 0x2710
push eax
push ecx
call fcn.004116e0
sub eax, dword [esp + 0x20]
sbb edx, dword [esp + 0x24]
push edx
push eax
lea eax, [esp + 0x100]
push str._n_Done_extracting_DLL__d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [esp + 0xf8]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
add edi, 0xfffffff0
mov dword [esp + 0x1c], eax
cmp eax, edi
je 0x406203
cmp dword [edi + 0xc], esi
lea ebx, [edi + 0xc]
jl 0x4061f2
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x4061f2
call fcn.00407b00
mov dword [esp + 0x58], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4061e5
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [esp + 0x58]
add ecx, 0x10
mov dword [esp + 0x18], ecx
jmp 0x406203
mov eax, dword [esp + 0x10]
mov edi, dword [eax - 0xc]
push eax
lea ebx, [esp + 0x1c]
call fcn.00407960
push 0xa
push str.OCDLL.DLL
lea ebx, [esp + 0x20]
call fcn.004078a0
lea edx, [esp + 0xe8]
push edx
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x3c]
push ecx
push str.reboot
lea eax, [esp + 0x8c]
call fcn.00407fb0
test eax, eax
jne 0x40643b
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea edx, [esp + 0xe8]
push edx
mov dword [esp + 0xec], esi
mov dword [esp + 0xf0], esi
mov dword [esp + 0x68], esi
call edi
mov eax, dword [esp + 0xec]
mov ecx, dword [esp + 0xe8]
push esi
push 0x2710
push eax
push ecx
call fcn.004116e0
mov ebx, dword [esp + 0x20]
sub eax, ebx
sbb edx, dword [esp + 0x24]
push edx
push eax
lea eax, [esp + 0x100]
push str._n_begin_extracting_HTML__d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [esp + 0xf8]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x8c
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea ecx, [esp + 0x14]
mov edx, eax
call fcn.00405a40
add esp, 4
lea edx, [esp + 0xe8]
mov dword [esp + 0xe8], esi
mov dword [esp + 0xec], esi
push edx
test eax, eax
jne 0x406345
mov dword [esp + 0x78], esi
call edi
mov eax, dword [esp + 0xec]
mov ecx, dword [esp + 0xe8]
push esi
push 0x2710
push eax
push ecx
call fcn.004116e0
sub eax, ebx
sbb edx, dword [esp + 0x24]
push edx
push eax
lea eax, [esp + 0x100]
push str._n_Fail_HTML_extraction__d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [esp + 0xf8]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x406cc8
mov dword [esp + 0x68], esi
call edi
mov eax, dword [esp + 0xec]
mov ecx, dword [esp + 0xe8]
push esi
push 0x2710
push eax
push ecx
call fcn.004116e0
sub eax, ebx
sbb edx, dword [esp + 0x24]
push edx
push eax
lea eax, [esp + 0x100]
push str._n_Done_extracting_HTML__d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [esp + 0xf8]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea edx, [esp + 0xe8]
push edx
mov dword [esp + 0xec], esi
mov dword [esp + 0xf0], esi
mov dword [esp + 0x68], esi
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [esp + 0xec]
mov ecx, dword [esp + 0xe8]
push esi
push 0x2710
push eax
push ecx
call fcn.004116e0
mov ebx, dword [esp + 0x20]
sub eax, ebx
sbb edx, dword [esp + 0x24]
push edx
push eax
lea eax, [esp + 0x100]
push str._n_begin_load_dll_functions__d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [esp + 0xf8]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x28
call fcn.00408b7e
mov edi, eax
add esp, 4
cmp edi, esi
je 0x40680b
mov edx, dword [0x41cea0]
mov eax, dword [edx + 0xc]
mov ecx, 0x41cea0
call eax
add eax, 0x10
mov dword [edi + 8], eax
mov dword [edi + 0xc], esi
mov dword [edi + 0x14], esi
mov dword [edi + 0x1c], esi
mov dword [edi + 0x20], esi
mov dword [edi + 0x10], esi
jmp 0x40680d
lea edx, [esp + 0xe8]
push edx
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x3c]
push ecx
push 0x41a040
lea eax, [esp + 0x8c]
call fcn.00407fb0
test eax, eax
je 0x40656d
mov edx, dword [0x41625c]
mov eax, dword [0x416260]
mov ecx, dword [0x416264]
mov dword [esp + 0xe8], edx
mov edx, dword [0x416268]
mov dword [esp + 0xec], eax
mov eax, dword [0x41cea0]
mov dword [esp + 0xf0], ecx
mov dword [esp + 0xf4], edx
mov edx, dword [eax + 0xc]
mov ecx, 0x41cea0
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0xec]
push ecx
call fcn.004054c0
add esp, 8
test eax, eax
jns 0x40651e
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x40651e
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4064f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406515
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
jmp 0x406cdb
mov edi, 0x41a040
lea esi, [esp + 0x7c]
call fcn.00407cf0
mov edx, dword [eax]
push edx
push str.OfferCast_s
lea edi, [esp + 0x1c]
call fcn.00407cd0
add esp, 8
mov eax, edi
lea ecx, [esp + 0x10]
call fcn.00407180
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40656b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor esi, esi
lea ecx, [esp + 0xe8]
push ecx
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x24]
push eax
push str.second
lea eax, [esp + 0x8c]
call fcn.00407fb0
test eax, eax
jne 0x406392
lea ecx, [esp + 0xe8]
push ecx
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x24]
push eax
push str.exePath
lea eax, [esp + 0x8c]
call fcn.00407fb0
cmp eax, esi
jne 0x406605
cmp dword [esp + 0x7c], esi
jne 0x4065ea
mov ecx, dword [esp + 0x84]
push 1
push ecx
lea edx, [esp + 0x84]
push edx
call fcn.00408070
test al, al
jne 0x4065ea
push 0x8007000e
call fcn.00408810
mov eax, dword [esp + 0x58]
push eax
push str.exePath
lea ecx, [esp + 0x84]
push ecx
mov ecx, dword [esp + 0x28]
call fcn.00408310
mov eax, dword [eax + 4]
sub eax, 0x10
call fcn.00407b00
mov ecx, dword [esp + 0x60]
lea edx, [esp + 0x14]
lea edi, [eax + 0x10]
push edx
mov dword [esp + 0x20], edi
call fcn.004070b0
push 8
push str.__second
lea ebx, [esp + 0x1c]
call fcn.004078a0
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xac]
push ecx
mov dword [esp + 0xb0], 0x3c
mov dword [esp + 0xb4], 0x2000040
mov dword [esp + 0xb8], esi
mov dword [esp + 0xbc], str.open
mov dword [esp + 0xc0], edi
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], esi
mov dword [esp + 0xcc], 0xa
mov dword [esp + 0xd0], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4066a7
cmp dword [esp + 0xe4], esi
jne 0x4067d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, esi
je 0x4067d6
mov edx, dword [0x41cea0]
mov eax, dword [edx + 0xc]
mov ecx, 0x41cea0
call eax
add eax, 0x10
push ebx
push str._n_Fail_to_launch__second_instance:__d
lea edi, [esp + 0x3c]
mov dword [esp + 0x3c], eax
call fcn.00407cb0
mov ebx, dword [esp + 0x3c]
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x3e8
lea ecx, [esp + 0x4e4]
push esi
push ecx
call fcn.0040a030
mov edx, dword [esp + 0x1c]
add esp, 0xc
push edx
lea eax, [esp + 0x4e4]
push str._s.
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x38]
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
lea ecx, [esp + 0x4e0]
mov edx, 0x414
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov word [esp + 0x54], si
push eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], 3
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], esi
mov word [esp + 0x4c], dx
mov dword [esp + 0x4e], esi
mov dword [esp + 0x52], esi
mov dword [esp + 0x56], esi
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
lea edi, [esp + 0x1c]
call fcn.00407630
lea edi, [esp + 0x10]
call fcn.00407630
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
cmp eax, esi
je 0x4067ba
cmp dword [edi - 0xc], esi
jl 0x4067ba
push eax
push edi
call fcn.00408ac4
add esp, 8
cmp eax, esi
je 0x4067ba
sub eax, edi
sar eax, 1
js 0x4067ba
push 4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4067d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4067f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x406bdf
xor edi, edi
mov dword [0x41e1e4], edi
mov edi, dword [esp + 0x24]
push edi
push ebx
lea ecx, [esp + 0x20]
call fcn.004055d0
mov dword [esp + 0xec], esi
test eax, eax
je 0x406a57
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea ecx, [esp + 0xe8]
push ecx
mov dword [esp + 0xec], esi
mov dword [esp + 0x68], esi
call edi
mov eax, dword [esp + 0xec]
mov ecx, dword [esp + 0xe8]
push esi
push 0x2710
push eax
push ecx
call fcn.004116e0
sub eax, ebx
sbb edx, dword [esp + 0x24]
push edx
push eax
lea edx, [esp + 0x100]
push str._n_mapping_dll_functions_successfully__d
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [esp + 0xf8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [esp + 0xe8]
push ecx
mov dword [esp + 0xec], esi
mov dword [esp + 0xf0], esi
mov dword [esp + 0x68], esi
call edi
mov eax, dword [esp + 0xec]
mov ecx, dword [esp + 0xe8]
push esi
push 0x2710
push eax
push ecx
call fcn.004116e0
sub eax, ebx
sbb edx, dword [esp + 0x24]
push edx
push eax
lea edx, [esp + 0x100]
push str._n_Start_main_app__d
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [esp + 0xf8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edi, dword [esp + 0x70]
push 0x64
push 0x41e108
push 0x66
push edi
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x41e040
push 0x67
push edi
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, edi
call fcn.00406de0
mov eax, edi
call fcn.00406e40
mov dword [0x41e1e0], eax
cmp eax, esi
je 0x406cb4
call fcn.00405240
sub eax, ebx
sbb edx, dword [esp + 0x24]
push edx
push eax
lea edx, [esp + 0x100]
push str._n_Start_OC__d
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [esp + 0xf8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004059d0
call fcn.00405240
sub eax, ebx
sbb edx, dword [esp + 0x24]
push edx
push eax
lea edx, [esp + 0x100]
push str._n_Begin_wait_to_completion__d
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [esp + 0xf8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0xf7
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
push esi
push esi
push esi
lea ecx, [esp + 0x44]
push ecx
mov edi, eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x406a43
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x38]
push edx
push edi
push eax
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x406a31
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
mov edx, dword [esp + 0x3c]
lea eax, [edx - 0x100]
cmp eax, 9
ja 0x406a26
mov ecx, dword [0x41e1e4]
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x1c], esi
cmp eax, esi
je 0x406a26
cmp dword [ecx + 0x10], esi
je 0x406a26
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x48]
push ecx
push edx
call eax
add esp, 0x10
cmp dword [esp + 0x1c], 1
je 0x406a31
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
push esi
push esi
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x4069c5
call fcn.00405240
sub eax, ebx
sbb edx, dword [esp + 0x24]
push edx
push eax
push str._n_End_wait_to_completion__d
jmp 0x406a8a
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push esi
push 0x2710
push eax
push ecx
call fcn.004116e0
sub eax, ebx
sbb edx, edi
push edx
push eax
push str._n_fail_to_load_dll_functions__d
lea ecx, [esp + 0x104]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [esp + 0xf8]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [0x41e1e4]
cmp eax, esi
je 0x406ab8
push eax
call fcn.00406d60
lea eax, [esp + 0xe8]
push eax
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x68]
push edx
push str.reboot
lea eax, [esp + 0x8c]
mov dword [0x41e1e4], esi
call fcn.00407fb0
test eax, eax
je 0x406bf4
lea eax, [esp + 0xe8]
push eax
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x68]
push edx
push str.second
lea eax, [esp + 0x8c]
call fcn.00407fb0
test eax, eax
je 0x406cb4
push 0x3e8
lea eax, [esp + 0x4e4]
push esi
push eax
call fcn.0040a030
mov edi, dword [esp + 0x1c]
add esp, 0xc
push edi
lea ecx, [esp + 0x4e4]
push str._s.
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [esp + 0x38]
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
lea edx, [esp + 0x4e0]
mov eax, 0x414
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov word [esp + 0x54], si
push ecx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], 3
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], esi
mov word [esp + 0x4c], ax
mov dword [esp + 0x4e], esi
mov dword [esp + 0x52], esi
mov dword [esp + 0x56], esi
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, str.exePath
lea esi, [esp + 0x7c]
call fcn.00407cf0
mov eax, dword [eax]
sub eax, 0x10
call fcn.00407b00
push 4
lea esi, [eax + 0x10]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406cb4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x406cb4
lea ecx, [esp + 0xe8]
push ecx
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0x68]
push eax
push str.localpath
lea eax, [esp + 0x8c]
call fcn.00407fb0
test eax, eax
jne 0x406cb4
push 0x3e8
lea ecx, [esp + 0x4e4]
push esi
push ecx
call fcn.0040a030
mov edi, dword [esp + 0x1c]
add esp, 0xc
push edi
lea edx, [esp + 0x4e4]
push str._s.
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [esp + 0x38]
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
lea eax, [esp + 0x4e0]
mov ecx, 0x414
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov word [esp + 0x54], si
push edx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], 3
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], esi
mov word [esp + 0x4c], cx
mov dword [esp + 0x4e], esi
mov dword [esp + 0x52], esi
mov dword [esp + 0x56], esi
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406cd4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406cf4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406d14
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406d34
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x7c]
push ecx
call fcn.00407d50
mov ecx, dword [esp + 0x8cc]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00408828
mov esp, ebp
pop ebp
ret 0x10