Function at 0x40ce30
Capabilities:
Accept command line arguments
Check if file exists
Copy file
Create directory
Create process on windows
Delete file
Get common file path
Get file attributes
Print debug messages
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x23c4
call fcn.00433ef0
mov eax, dword [0x447034]
xor eax, esp
mov dword [esp + 0x23c0], eax
push ebx
push esi
push edi
call fcn.00411c50
xor edi, edi
push 0x54
mov ebx, 7
lea eax, [esp + 0x188]
push edi
push eax
mov dword [esp + 0x134], edi
mov dword [esp + 0x138], edi
mov dword [esp + 0x154], ebx
mov dword [esp + 0x150], edi
mov word [esp + 0x140], di
mov dword [esp + 0x170], ebx
mov dword [esp + 0x16c], edi
mov word [esp + 0x15c], di
mov dword [esp + 0x18c], ebx
mov dword [esp + 0x188], edi
mov word [esp + 0x178], di
call fcn.0042a8d0
add esp, 0xc
push 0x48
xor eax, eax
lea ecx, [esp + 0x290]
push edi
push ecx
mov dword [esp + 0x1a8], ebx
mov dword [esp + 0x1a4], edi
mov word [esp + 0x194], di
mov dword [esp + 0x1c4], ebx
mov dword [esp + 0x1c0], edi
mov word [esp + 0x1b0], di
mov dword [esp + 0x1e0], ebx
mov dword [esp + 0x1dc], edi
mov word [esp + 0x1cc], di
mov dword [esp + 0x1e4], eax
mov dword [esp + 0x1e8], eax
mov dword [esp + 0x294], edi
call fcn.0042a8d0
mov edx, dword [0x44951c]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x44951c
mov dword [esp + 0x34], edi
call eax
mov esi, eax
lea ecx, [esp + 0x34]
add esi, 0x10
push ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x34]
cmp eax, ebx
jne 0x40d396
xor ebx, ebx
push ebx
push 0x43fe18
lea esi, [esp + 0x18c]
call fcn.00407ac0
push 9
mov edi, 1
push str.ERROR_LOG
lea esi, [esp + 0x170]
mov dword [esp + 0x1e0], ebx
mov dword [esp + 0x1e4], edi
mov dword [esp + 0x134], ebx
mov dword [esp + 0x130], ebx
call fcn.00407ac0
push 9
push str.ERROR_LOG
lea esi, [esp + 0x154]
call fcn.00407ac0
push 9
push str.ERROR_LOG
lea esi, [esp + 0x138]
call fcn.00407ac0
mov edx, dword [0x44951c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44951c
call eax
mov ebx, eax
add ebx, 0x10
cmp dword [esp + 0x34], edi
mov dword [esp + 0x28], ebx
jle 0x40d0af
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov esi, dword [esp + 0x14]
mov ecx, dword [esi + edi*4]
push str._reportlog
push ecx
call ebx
test eax, eax
jne 0x40d03d
mov edx, dword [esp + 0x14]
mov esi, dword [edx + edi*4 + 4]
mov ecx, esi
call fcn.004031f0
push esi
lea ecx, [esp + 0x2c]
push ecx
mov ebx, eax
call fcn.004027d0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov esi, dword [esp + 0x14]
jmp 0x40d09e
mov edx, dword [esi + edi*4]
push str._server_address
push edx
call ebx
test eax, eax
jne 0x40d078
mov esi, dword [esi + edi*4 + 4]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d055
sub eax, edx
sar eax, 1
push eax
push esi
lea esi, [esp + 0x1c4]
call fcn.00407ac0
mov esi, dword [esp + 0x14]
jmp 0x40d09e
mov eax, dword [esi + edi*4]
push str._dump_channel
push eax
call ebx
test eax, eax
jne 0x40d09e
mov ecx, dword [esi + edi*4 + 4]
push 0xa
push eax
push ecx
call fcn.004298fd
add esp, 0xc
mov dword [esp + 0x1dc], eax
add edi, 2
cmp edi, dword [esp + 0x34]
jl 0x40d006
mov ebx, dword [esp + 0x28]
push 0x206
lea edx, [esp + 0x1796]
push 0
push edx
mov word [esp + 0x179c], 0
call fcn.0042a8d0
add esp, 0xc
lea eax, [esp + 0x1790]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
lea ecx, [esp + 0x1794]
push ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea edx, [esp + 0x1790]
push edx
call edi
cmp eax, 0xffffffff
je 0x40d10e
test al, 0x10
jne 0x40d170
add ebx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d12a
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
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 0x40d14a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x128]
push ecx
call fcn.0040edd0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x23c0]
xor ecx, esp
call fcn.004282a0
mov esp, ebp
pop ebp
ret 0x10
push str.SysoptAsstDump
lea edx, [esp + 0x1794]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
lea eax, [esp + 0x1794]
push eax
call esi
lea ecx, [esp + 0x1790]
push ecx
call edi
cmp eax, 0xffffffff
je 0x40d1a2
test al, 0x10
jne 0x40d1b7
add ebx, 0xfffffff0
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jmp 0x40d11e
xor esi, esi
push 0x206
lea edx, [esp + 0x199e]
push esi
push edx
mov word [esp + 0x19a4], si
call fcn.0042a8d0
add esp, 0xc
push 0x206
lea eax, [esp + 0x2de]
push esi
push eax
mov word [esp + 0x2e4], si
call fcn.0042a8d0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x2dc]
push ebx
push ecx
call fcn.00428918
add esp, 0xc
lea edx, [esp + 0x2d8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
lea eax, [esp + 0x2d8]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x1e0]
push eax
push ecx
lea edx, [esp + 0x179c]
push edx
lea eax, [esp + 0x19a8]
push str._sdumprep___log___channel____d___0x_x____s.inf
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
push esi
lea ecx, [esp + 0x199c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40d277
add ebx, 0xfffffff0
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jmp 0x40d11e
lea edx, [esp + 0x1998]
push edx
call edi
cmp eax, 0xffffffff
je 0x40d10e
test al, 0x10
jne 0x40d10e
lea eax, [esp + 0x1998]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40d2a0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x199c]
push edx
lea esi, [esp + 0x18c]
call fcn.00407ac0
lea eax, [esp + 0x1998]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d2d0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x199c]
push eax
lea esi, [esp + 0x1a8]
call fcn.00407ac0
xor eax, eax
lea ecx, [esp + 0x1e0]
push ecx
mov dword [esp + 0x1e4], 0x43fdd0
mov dword [esp + 0x1e8], eax
mov dword [esp + 0x1ec], eax
mov dword [esp + 0x1f0], eax
mov dword [esp + 0x1f4], eax
mov dword [esp + 0x1f8], eax
mov dword [esp + 0x1fc], eax
call fcn.00408be0
lea edx, [esp + 0x700]
push edx
call fcn.00409b30
lea eax, [esp + 0x128]
push eax
lea edi, [esp + 0x704]
call fcn.00407220
lea edi, [esp + 0x1e0]
call fcn.00408b40
call fcn.004089c0
mov ecx, dword [esp + 0x704]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
call fcn.00411a50
lea edx, [esp + 0x700]
push edx
call fcn.00409c50
mov esi, edi
call fcn.00405c80
jmp 0x40d10e
cmp eax, 0x13
je 0x40d3e3
cmp eax, 0x15
je 0x40d3e3
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d3bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x128]
push ecx
call fcn.0040edd0
mov ecx, dword [esp + 0x23cc]
pop edi
pop esi
pop ebx
xor ecx, esp
or eax, 0xffffffff
call fcn.004282a0
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [0x44951c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44951c
call eax
mov edx, dword [0x44951c]
mov esi, eax
mov eax, dword [edx + 0xc]
add esi, 0x10
mov ecx, 0x44951c
mov dword [esp + 0x18], esi
call eax
mov edx, dword [0x44951c]
mov ebx, eax
mov eax, dword [edx + 0xc]
add ebx, 0x10
mov ecx, 0x44951c
mov dword [esp + 0x1c], ebx
call eax
mov edx, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
add eax, 0x10
sub edx, 0x104
or ecx, edx
mov dword [esp + 0x10], eax
jge 0x40d453
mov ecx, 0x104
lea eax, [esp + 0x18]
call fcn.004030e0
mov esi, dword [esp + 0x18]
push 0x104
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp dword [esi - 4], 1
jle 0x40d478
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00403130
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ecx, esi
call fcn.004031f0
cmp eax, edi
jl 0x40dde6
cmp eax, dword [esi - 8]
jg 0x40dde6
mov dword [esi - 0xc], eax
mov ecx, str.dumprepn.exe
mov word [esi + eax*2], di
call fcn.004031f0
push eax
push str.dumprepn.exe
lea edx, [esp + 0x20]
push edx
call fcn.0040ef30
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [esp + 0x24], eax
mov eax, 1
cmp dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
jle 0x40da26
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
add edi, 8
jmp 0x40d4f0
mov ecx, dword [edi - 4]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str._exception_code
push ecx
call esi
test eax, eax
jne 0x40d51c
mov edx, dword [edi]
push edx
call fcn.00428bb8
add esp, 4
mov dword [esp + 0x128], eax
jmp 0x40d944
mov eax, dword [edi - 4]
push str._exception_address
push eax
call esi
test eax, eax
jne 0x40d542
mov ecx, dword [edi]
push ecx
call fcn.00428bb8
add esp, 4
mov dword [esp + 0x12c], eax
jmp 0x40d944
mov edx, dword [edi - 4]
push str._program_path
push edx
call esi
test eax, eax
jne 0x40d5d0
mov edx, dword [edi]
mov eax, edx
lea esi, [eax + 2]
jmp 0x40d560
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d560
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x138]
call fcn.00407ac0
mov ecx, 0x440948
call fcn.004031f0
push 0x440948
lea ecx, [esp + 0x14]
push ecx
mov ebx, eax
call fcn.004027d0
mov esi, dword [edi]
mov ecx, esi
call fcn.004031f0
push eax
push esi
lea edx, [esp + 0x18]
push edx
call fcn.0040ef30
mov ecx, 0x440948
call fcn.004031f0
push eax
push 0x440948
lea eax, [esp + 0x18]
push eax
call fcn.0040ef30
mov ebx, dword [esp + 0x10]
jmp 0x40d944
mov ecx, dword [edi - 4]
push 0x44094c
push ecx
call esi
test eax, eax
jne 0x40d656
mov edx, dword [edi]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d5e6
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x154]
call fcn.00407ac0
mov ecx, 0x440948
call fcn.004031f0
push 0x440948
lea edx, [esp + 0x14]
push edx
mov ebx, eax
call fcn.004027d0
mov esi, dword [edi]
mov ecx, esi
call fcn.004031f0
push eax
push esi
lea eax, [esp + 0x18]
push eax
call fcn.0040ef30
mov ecx, 0x440948
call fcn.004031f0
push eax
push 0x440948
lea ecx, [esp + 0x18]
push ecx
call fcn.0040ef30
mov ebx, dword [esp + 0x10]
jmp 0x40d944
mov edx, dword [edi - 4]
push str._dump_file
push edx
call esi
test eax, eax
jne 0x40d772
mov edx, dword [edi]
lea eax, [esp + 0x184]
push eax
call fcn.00406e80
cmp dword [esp + 0x24], 0
je 0x40d944
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [edi]
call fcn.00402100
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea ecx, [esp + 0x28]
push ecx
mov ecx, eax
call fcn.00402100
lea esi, [esp + 0x20]
call fcn.00406e20
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov esi, dword [esp + 0x20]
mov ecx, esi
call fcn.004031f0
test eax, eax
jl 0x40dde6
cmp eax, dword [esi - 8]
jg 0x40dde6
mov dword [esi - 0xc], eax
mov edx, dword [esp + 0x20]
mov word [edx + eax*2], 0
lea eax, [esp + 0x20]
push eax
mov esi, 0x440990
call fcn.0040ee90
mov ecx, dword [esp + 0x20]
call fcn.00420ca0
mov eax, dword [esp + 0x28]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea edx, [esp + 0x28]
push edx
call fcn.0040ef30
mov ecx, 0x440948
call fcn.004031f0
push 0x440948
lea ecx, [esp + 0x14]
push ecx
mov ebx, eax
call fcn.004027d0
mov eax, dword [esp + 0x20]
mov edx, dword [eax - 0xc]
push edx
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0040ef30
lea ecx, [esp + 0x10]
push ecx
mov esi, 0x440948
call fcn.0040ee90
mov edx, dword [esp + 0x20]
mov eax, dword [edi]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [esp + 0x28]
call fcn.004021b0
lea eax, [esp + 0x20]
call fcn.004021b0
mov ebx, dword [esp + 0x10]
jmp 0x40d944
mov ecx, dword [edi - 4]
push str._txt_file
push ecx
call esi
test eax, eax
jne 0x40d88e
lea edx, [esp + 0x1a0]
push edx
mov edx, dword [edi]
call fcn.00406e80
cmp dword [esp + 0x24], 0
je 0x40d944
mov ecx, dword [edi]
lea eax, [esp + 0x14]
push eax
call fcn.00402100
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea edx, [esp + 0x38]
push edx
mov ecx, eax
call fcn.00402100
lea esi, [esp + 0x14]
call fcn.00406e20
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov esi, dword [esp + 0x14]
mov ecx, esi
call fcn.004031f0
test eax, eax
jl 0x40dde6
cmp eax, dword [esi - 8]
jg 0x40dde6
mov dword [esi - 0xc], eax
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x14]
push edx
mov esi, 0x440990
mov word [ecx + eax*2], 0
call fcn.0040ee90
mov ecx, dword [esp + 0x14]
call fcn.00420ca0
mov eax, dword [esp + 0x38]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.0040ef30
mov ecx, 0x440948
call fcn.004031f0
push 0x440948
lea ecx, [esp + 0x14]
push ecx
mov ebx, eax
call fcn.004027d0
mov eax, dword [esp + 0x14]
mov edx, dword [eax - 0xc]
push edx
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0040ef30
lea ecx, [esp + 0x10]
push ecx
mov esi, 0x440948
call fcn.0040ee90
mov edx, dword [esp + 0x14]
mov eax, dword [edi]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [esp + 0x38]
call fcn.004021b0
lea eax, [esp + 0x14]
call fcn.004021b0
mov ebx, dword [esp + 0x10]
jmp 0x40d944
mov ecx, dword [edi - 4]
push str._server_address
push ecx
call esi
test eax, eax
jne 0x40d8e8
lea edx, [esp + 0x1bc]
push edx
mov edx, dword [edi]
call fcn.00406e80
mov ecx, 0x440948
call fcn.004031f0
push 0x440948
lea ecx, [esp + 0x14]
push ecx
mov ebx, eax
call fcn.004027d0
mov esi, dword [edi]
lea edx, [esp + 0x10]
push edx
call fcn.0040ee90
lea eax, [esp + 0x10]
push eax
mov esi, 0x440948
call fcn.0040ee90
mov ebx, dword [esp + 0x10]
jmp 0x40d944
mov ecx, dword [edi - 4]
push str._show_gui
push ecx
call esi
test eax, eax
jne 0x40d90b
mov edx, dword [edi]
push edx
call fcn.00428bb8
add esp, 4
mov dword [esp + 0x1d8], eax
jmp 0x40d944
mov eax, dword [edi - 4]
push str._dump_channel
push eax
call esi
test eax, eax
jne 0x40d931
mov ecx, dword [edi]
push 0xa
push eax
push ecx
call fcn.004298fd
add esp, 0xc
mov dword [esp + 0x1dc], eax
jmp 0x40d944
mov edx, dword [edi - 4]
push str._dump_type
push edx
call esi
test eax, eax
jne 0x40ddf0
mov ecx, 0x4409d8
call fcn.004031f0
push eax
push 0x4409d8
lea eax, [esp + 0x24]
push eax
call fcn.0040ef30
mov esi, dword [edi - 4]
mov ecx, esi
call fcn.004031f0
push eax
push esi
lea ecx, [esp + 0x24]
push ecx
call fcn.0040ef30
mov ecx, 0x4409d8
call fcn.004031f0
push eax
push 0x4409d8
lea edx, [esp + 0x24]
push edx
call fcn.0040ef30
mov eax, dword [ebx - 0xc]
test eax, eax
jne 0x40d9a7
mov esi, dword [edi]
mov ecx, esi
call fcn.004031f0
push eax
push esi
lea eax, [esp + 0x24]
push eax
jmp 0x40d9ae
push eax
push ebx
lea ecx, [esp + 0x24]
push ecx
call fcn.0040ef30
cmp dword [ebx - 0xc], 0
mov esi, dword [ebx - 0x10]
lea eax, [ebx - 0x10]
je 0x40da08
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x40d9e0
cmp dword [ebx - 8], 0
jl 0x40dde6
mov dword [ebx - 0xc], 0
mov word [ebx], 0
jmp 0x40da08
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d9f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
mov ebx, eax
add ebx, 0x10
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x30]
add eax, 2
add edi, 8
cmp eax, dword [esp + 0x34]
mov dword [esp + 0x30], eax
jl 0x40d4f0
mov ebx, dword [esp + 0x1c]
xor edi, edi
cmp dword [esp + 0x24], edi
je 0x40dac4
push 0x40
lea edx, [esp + 0x1e8]
push edi
push edx
call fcn.0042a8d0
xor eax, eax
add esp, 0xc
mov dword [esp + 0xd4], edi
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], eax
mov dword [esp + 0xe0], eax
mov dword [esp + 0x1e0], 0x44
cmp dword [ebx - 4], 1
jle 0x40da84
mov eax, dword [ebx - 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00403130
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0xd4]
push edx
lea eax, [esp + 0x1e4]
push eax
push edi
push edi
push 0x8000000
push edi
push edi
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edx, dword [esp + 0xd8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0xd4]
push eax
call esi
lea ecx, [esp + 0x2c]
push ecx
lea esi, [esp + 0x188]
call fcn.0040ccc0
mov eax, dword [esp + 0x18c]
mov ecx, 8
add esp, 4
cmp dword [esp + 0x19c], ecx
jae 0x40daf4
lea eax, [esp + 0x188]
cmp dword [esp + 0x1b8], ecx
mov edi, dword [esp + 0x1a4]
jae 0x40db0b
lea edi, [esp + 0x1a4]
push eax
call fcn.0041fa70
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40db34
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40db50
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 0x40db70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x44951c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44951c
call eax
add eax, 0x10
cmp dword [esp + 0x1b8], 8
mov dword [esp + 0x18], eax
jb 0x40de19
mov edi, dword [esp + 0x1a4]
xor esi, esi
cmp edi, esi
je 0x40dbd8
mov ecx, edi
call fcn.004031f0
push edi
lea ecx, [esp + 0x1c]
push ecx
mov ebx, eax
call fcn.004027d0
lea esi, [esp + 0x18]
call fcn.0041e1e0
call fcn.0041e2d0
call fcn.0041e390
call fcn.0041e4f0
mov edx, esi
push edx
call fcn.0041e640
xor esi, esi
push 0x88
lea eax, [esp + 0x48]
push esi
push eax
mov dword [esp + 0x4c], esi
call fcn.0042a8d0
add esp, 0xc
lea edi, [esp + 0x40]
call fcn.00403de0
cmp dword [esp + 0x54], 1
jne 0x40de7a
call fcn.0040efc0
lea ecx, [esp + 0xd4]
push ecx
mov dword [esp + 0xdc], eax
mov dword [esp + 0xe0], esi
call fcn.0040c520
add esp, 4
test eax, eax
je 0x40de25
mov edx, dword [esp + 0xd8]
mov eax, dword [edx]
lea ecx, [esp + 0xd4]
mov dword [esp + 0x38], ecx
mov ebx, eax
cmp ecx, esi
mov edi, dword [esp + 0xd8]
je 0x40dc5a
lea eax, [esp + 0xd4]
cmp ecx, eax
je 0x40dc63
call fcn.0042868a
mov ecx, dword [esp + 0x38]
cmp ebx, edi
je 0x40de25
cmp ecx, esi
mov eax, 7
mov dword [esp + 0x1f8], eax
mov dword [esp + 0x1f4], esi
mov word [esp + 0x1e4], si
mov dword [esp + 0x214], eax
mov dword [esp + 0x210], esi
mov word [esp + 0x200], si
mov dword [esp + 0x230], eax
mov dword [esp + 0x22c], esi
mov word [esp + 0x21c], si
jne 0x40dcbf
call fcn.0042868a
mov ecx, dword [esp + 0x38]
cmp ebx, dword [ecx + 4]
jne 0x40dcc9
call fcn.0042868a
push 0xffffffffffffffff
push 0
lea esi, [ebx + 8]
push esi
lea eax, [esp + 0x1ec]
call fcn.004021d0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
push ecx
lea eax, [esp + 0x208]
call fcn.004021d0
push 0xffffffffffffffff
push 0
add esi, 0x38
push esi
lea eax, [esp + 0x224]
call fcn.004021d0
mov edx, dword [0x44951c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44951c
call eax
mov ecx, dword [esp + 0x200]
add eax, 0x10
mov esi, 8
cmp dword [esp + 0x214], esi
mov dword [esp + 0x30], eax
jae 0x40dd38
lea ecx, [esp + 0x200]
cmp dword [esp + 0x230], esi
mov eax, dword [esp + 0x21c]
jae 0x40dd4f
lea eax, [esp + 0x21c]
push ecx
push eax
push 0x4409dc
lea edx, [esp + 0x3c]
call fcn.00408020
mov ecx, dword [esp + 0x1b0]
add esp, 0xc
cmp dword [esp + 0x1b8], esi
jae 0x40dd79
lea ecx, [esp + 0x1a4]
cmp dword [esp + 0x1f8], esi
mov eax, dword [esp + 0x1e4]
jae 0x40dd90
lea eax, [esp + 0x1e4]
mov esi, dword [esp + 0x30]
push ecx
push esi
push eax
push str.ModuleVersion
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ddbe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1e0]
push ecx
call fcn.0040ed20
mov edx, dword [esp + 0x38]
cmp ebx, dword [edx + 4]
jne 0x40ddd9
call fcn.0042868a
mov ebx, dword [ebx]
mov ecx, dword [esp + 0x38]
xor esi, esi
jmp 0x40dc44
push 0x80070057
call fcn.004032b0
lea eax, [esp + 0x10]
call fcn.004021b0
lea eax, [esp + 0x1c]
call fcn.004021b0
lea eax, [esp + 0x18]
call fcn.004021b0
lea eax, [esp + 0x2c]
call fcn.004021b0
jmp 0x40d3bc
lea edi, [esp + 0x1a4]
jmp 0x40dba2
mov eax, dword [esp + 0xd8]
mov esi, dword [eax]
mov dword [eax], eax
mov eax, dword [esp + 0xd8]
mov dword [eax + 4], eax
mov eax, dword [esp + 0xd8]
cmp esi, eax
mov dword [esp + 0xdc], 0
je 0x40de71
mov edi, dword [esi]
lea eax, [esi + 8]
push eax
call fcn.0040ed20
push esi
call fcn.004282af
mov eax, dword [esp + 0xdc]
add esp, 4
cmp edi, eax
mov esi, edi
jne 0x40de50
push eax
call fcn.004282af
add esp, 4
cmp dword [esp + 0x1b8], 8
mov eax, dword [esp + 0x1a4]
jae 0x40de92
lea eax, [esp + 0x1a4]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
xor edi, edi
push edi
push str.Value
push str.AutoRecovery
call esi
mov ebx, 8
cmp dword [esp + 0x1b8], ebx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1a4]
jae 0x40dec8
lea eax, [esp + 0x1a4]
push eax
push edi
push str.productid
push str.ProductInfo
call esi
cmp eax, 0x50000
mov ecx, 7
mov dword [esp + 0x30], eax
mov dword [esp + 0x124], ecx
mov dword [esp + 0x120], edi
mov word [esp + 0x110], di
mov dword [esp + 0x108], ecx
mov dword [esp + 0x104], edi
mov word [esp + 0xf4], di
ja 0x40dfd0
je 0x40dfd0
cmp eax, 0x12000
ja 0x40df69
je 0x40df35
cmp eax, 0x15
je 0x40df4f
cmp eax, 0x11000
jne 0x40dfd0
lea eax, [esp + 0x10c]
push eax
call fcn.00417a50
add esp, 4
lea ecx, [esp + 0xf0]
push ecx
jmp 0x40df88
lea ecx, [esp + 0x10c]
push ecx
call fcn.00417a50
add esp, 4
lea edx, [esp + 0xf0]
push edx
jmp 0x40df88
cmp eax, 0x12001
jne 0x40dfd0
lea edx, [esp + 0x10c]
push edx
call fcn.00417a50
add esp, 4
lea eax, [esp + 0xf0]
push eax
call fcn.00417a50
mov ecx, dword [esp + 0x1a8]
add esp, 4
cmp dword [esp + 0x1b8], ebx
jae 0x40dfa7
lea ecx, [esp + 0x1a4]
cmp dword [esp + 0x108], ebx
mov eax, dword [esp + 0xf4]
jae 0x40dfbe
lea eax, [esp + 0xf4]
push ecx
push eax
push str.TryNo
push str.ProductInfo
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp dword [esp + 0x1b8], ebx
mov ecx, dword [esp + 0x1a4]
jae 0x40dfe7
lea ecx, [esp + 0x1a4]
cmp dword [esp + 0x124], ebx
mov eax, dword [esp + 0x110]
jae 0x40dffe
lea eax, [esp + 0x110]
push ecx
push eax
push str.Channel
push str.ProductInfo
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0x32
lea ecx, [esp + 0x2a4]
push edi
push ecx
call fcn.0042a8d0
add esp, 0xc
cmp dword [esp + 0x120], edi
jne 0x40e044
push 0x440a54
mov ecx, 0x32
lea edi, [esp + 0x2a4]
call fcn.0040be80
jmp 0x40e0c2
cmp dword [esp + 0x124], ebx
mov eax, dword [esp + 0x110]
jae 0x40e05b
lea eax, [esp + 0x110]
push edi
push eax
lea eax, [esp + 0x1e8]
lea edx, [esp + 0x1ec]
push eax
mov dword [esp + 0x1ec], edx
call fcn.00407930
sub esp, 0x84
mov edi, esp
mov ecx, 0x21
lea esi, [esp + 0x264]
rep movsd dword es:[edi], dword [esi]
push 0x440a58
mov ecx, 0x32
lea edi, [esp + 0x328]
call fcn.0040be80
mov eax, dword [esp + 0x268]
lea ecx, [esp + 0x26c]
add esp, 0x88
cmp eax, ecx
je 0x40e0c5
push eax
call fcn.0042888a
add esp, 4
xor esi, esi
xor ebx, ebx
cmp dword [esp + 0x1d8], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], esi
je 0x40e148
lea edx, [esp + 0x2d8]
push edx
call fcn.00404120
xor eax, eax
cmp dword [esp + 0x20], 2
lea ecx, [esp + 0x128]
sete al
push ecx
lea edi, [esp + 0x2dc]
mov dword [esp + 0x20], esi
mov dword [esp + 0x428], eax
call fcn.0040eeb0
mov edx, dword [esp + 0x428]
mov eax, dword [esp + 0x414]
mov ecx, dword [esp + 0x42c]
mov dword [esp + 0x14], edx
mov edx, edi
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], ecx
call fcn.004042f0
mov ebx, esi
jmp 0x40e7ac
push 6
push str._BSOD_
xor eax, eax
lea edx, [esp + 0x18c]
mov dword [esp + 0x2c], 1
xor edi, edi
call fcn.00407640
cmp eax, 0xffffffff
jne 0x40e7ac
lea eax, [esp + 0x1ba0]
push eax
call fcn.00404120
push 0x1ac
lea ecx, [esp + 0x1798]
push esi
push ecx
mov dword [esp + 0xe4], esi
mov dword [esp + 0xe8], esi
mov dword [esp + 0xec], esi
mov dword [esp + 0x179c], esi
call fcn.0042a8d0
add esp, 0xc
push 0x206
lea edx, [esp + 0x199e]
push esi
push edx
mov dword [esp + 0x290], 7
mov dword [esp + 0x28c], esi
mov word [esp + 0x27c], si
mov word [esp + 0x19a4], si
call fcn.0042a8d0
mov ecx, dword [esp + 0x194]
add esp, 0xc
cmp dword [esp + 0x19c], 8
jae 0x40e1ff
lea ecx, [esp + 0x188]
mov eax, dword [esp + 0x198]
cmp eax, 0x7ffffffe
jbe 0x40e21a
mov word [esp + 0x1998], si
jmp 0x40e686
push ecx
mov edx, 0x104
lea ecx, [esp + 0x199c]
call fcn.00403ce0
cmp eax, esi
jl 0x40e668
lea eax, [esp + 0x1998]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
lea eax, [esp + 0x1998]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40e250
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x199c]
push ecx
lea esi, [esp + 0x274]
call fcn.00407ac0
xor eax, eax
push 3
push 0x43f500
lea esi, [esp + 0x1e8]
mov dword [esp + 0x200], 7
mov dword [esp + 0x1fc], eax
mov word [esp + 0x1ec], ax
call fcn.00407ac0
mov edx, esi
push edx
lea edx, [esp + 0xd8]
lea ecx, [esp + 0x270]
call fcn.00404cd0
cmp eax, 9
sete bl
cmp dword [esp + 0x1f8], 8
jb 0x40e2d9
mov eax, dword [esp + 0x1e4]
push eax
call fcn.004282af
add esp, 4
test bl, bl
je 0x40e668
mov ecx, dword [esp + 0xd8]
test ecx, ecx
je 0x40e30c
mov esi, dword [esp + 0xdc]
mov edi, esi
sub edi, ecx
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x40e31f
call fcn.0042868a
mov esi, dword [esp + 0xdc]
mov ecx, dword [esp + 0xd8]
mov ebx, dword [ecx + 0x14]
mov edi, esi
sub edi, ecx
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x40e34e
call fcn.0042868a
mov esi, dword [esp + 0xdc]
mov ecx, dword [esp + 0xd8]
cmp dword [ecx + 0x18], 8
jb 0x40e359
mov eax, dword [ecx + 4]
jmp 0x40e35c
lea eax, [ecx + 4]
cmp ebx, 0x7ffffffe
jbe 0x40e370
mov word [esp + 0x18a0], 0
jmp 0x40e392
push eax
mov eax, ebx
mov edx, 0x28
lea ecx, [esp + 0x18a4]
call fcn.00403ce0
mov esi, dword [esp + 0xdc]
mov ecx, dword [esp + 0xd8]
test ecx, ecx
je 0x40e3b2
mov edi, esi
sub edi, ecx
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
ja 0x40e3c5
call fcn.0042868a
mov esi, dword [esp + 0xdc]
mov ecx, dword [esp + 0xd8]
mov edi, dword [ecx + 0x30]
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
ja 0x40e3ee
call fcn.0042868a
mov ecx, dword [esp + 0xd8]
cmp dword [ecx + 0x34], 8
jb 0x40e3f9
mov ecx, dword [ecx + 0x20]
jmp 0x40e3fc
add ecx, 0x20
cmp edi, 0x7ffffffe
jbe 0x40e410
mov word [esp + 0x18f0], 0
jmp 0x40e424
push ecx
mov eax, edi
mov edx, 0x28
lea ecx, [esp + 0x18f4]
call fcn.00403ce0
mov edi, 2
lea esi, [esp + 0xd4]
call fcn.00407310
mov ebx, dword [eax + 0x14]
call fcn.00407310
cmp dword [eax + 0x18], 8
jb 0x40e448
mov eax, dword [eax + 4]
jmp 0x40e44b
add eax, 4
cmp ebx, 0x7ffffffe
jbe 0x40e45f
mov word [esp + 0x1800], 0
jmp 0x40e473
push eax
mov eax, ebx
mov edx, 0x28
lea ecx, [esp + 0x1804]
call fcn.00403ce0
mov edi, 3
lea esi, [esp + 0xd4]
call fcn.00407310
mov ebx, dword [eax + 0x14]
call fcn.00407310
cmp dword [eax + 0x18], 8
jb 0x40e497
mov eax, dword [eax + 4]
jmp 0x40e49a
add eax, 4
cmp ebx, 0x7ffffffe
jbe 0x40e4ae
mov word [esp + 0x1850], 0
jmp 0x40e4c2
push eax
mov eax, ebx
mov edx, 0x28
lea ecx, [esp + 0x1854]
call fcn.00403ce0
mov edi, 6
lea esi, [esp + 0xd4]
call fcn.00407310
cmp dword [eax + 0x18], 8
jb 0x40e4de
mov eax, dword [eax + 4]
jmp 0x40e4e1
add eax, 4
push eax
call fcn.00428bb8
add esp, 4
mov edi, 8
lea esi, [esp + 0xd4]
mov dword [esp + 0x1790], eax
call fcn.00407310
mov ebx, dword [eax + 0x14]
call fcn.00407310
cmp dword [eax + 0x18], edi
jb 0x40e514
mov eax, dword [eax + 4]
jmp 0x40e517
add eax, 4
cmp ebx, 0x7ffffffe
jbe 0x40e52b
mov word [esp + 0x17b0], 0
jmp 0x40e53f
push eax
mov eax, ebx
mov edx, 0x28
lea ecx, [esp + 0x17b4]
call fcn.00403ce0
cmp dword [esp + 0x1b8], edi
mov eax, dword [esp + 0x1a4]
jae 0x40e556
lea eax, [esp + 0x1a4]
push eax
push 0xc
lea ecx, [esp + 0x17a0]
push ecx
push 0
push str.Value
push str.DumpKey
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor edi, edi
lea esi, [esp + 0xd4]
call fcn.00407310
cmp dword [eax + 0x18], 8
jb 0x40e58c
mov eax, dword [eax + 4]
jmp 0x40e58f
add eax, 4
mov ebx, eax
call fcn.0040bf40
test eax, eax
je 0x40e653
mov edi, 2
lea esi, [esp + 0xd4]
call fcn.00407310
cmp dword [eax + 0x18], 8
jb 0x40e5ba
mov eax, dword [eax + 4]
jmp 0x40e5bd
add eax, 4
mov esi, eax
call fcn.0040c320
test eax, eax
jne 0x40e653
push 0x2b8
push eax
lea edx, [esp + 0x2e4]
push edx
lea edi, [eax + 1]
mov dword [esp + 0x2e4], eax
call fcn.0042a8d0
add esp, 0xc
lea eax, [esp + 0x17b0]
push eax
lea ecx, [esp + 0x18f4]
push ecx
mov ecx, dword [esp + 0x1798]
lea edx, [esp + 0x18a8]
push edx
lea eax, [esp + 0x185c]
push eax
push ecx
lea edx, [esp + 0x2ec]
push edx
lea edx, [esp + 0x1818]
lea ecx, [esp + 0x17b0]
call fcn.00417ec0
add esp, 0x18
test eax, eax
je 0x40e668
cmp dword [esp + 0x2dc], edi
jne 0x40e668
cmp dword [esp + 0x2d8], 0
je 0x40e657
mov dword [esp + 0x24], 0
jmp 0x40e668
xor edi, edi
jmp 0x40e668
xor eax, eax
cmp dword [esp + 0x2f8], 0x10
sete al
mov dword [esp + 0x24], eax
cmp dword [esp + 0x284], 8
jb 0x40e682
mov ecx, dword [esp + 0x270]
push ecx
call fcn.004282af
add esp, 4
mov ebx, dword [esp + 0x1c]
xor eax, eax
lea esi, [esp + 0xd4]
mov dword [esp + 0x284], 7
mov dword [esp + 0x280], eax
mov word [esp + 0x270], ax
call fcn.004072a0
lea edx, [esp + 0x1ba0]
push edx
call fcn.004042f0
cmp dword [esp + 0x24], 0
je 0x40e7aa
xor esi, esi
cmp edi, esi
je 0x40e7aa
push str.ForceUpload_background
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [esp + 0x1e0]
push eax
mov dword [esp + 0x1e4], 0x43fdd0
mov dword [esp + 0x1e8], esi
mov dword [esp + 0x1ec], esi
mov dword [esp + 0x1f0], esi
mov dword [esp + 0x1f4], esi
mov dword [esp + 0x1f8], esi
mov dword [esp + 0x1fc], esi
call fcn.00408be0
lea ecx, [esp + 0x700]
mov esi, 1
push ecx
mov dword [esp + 0x20], esi
call fcn.00409b30
lea edx, [esp + 0x128]
push edx
lea edi, [esp + 0x704]
call fcn.00407220
lea edi, [esp + 0x1e0]
call fcn.00408b40
call fcn.004089c0
mov edx, dword [esp + 0x704]
mov eax, dword [esp + 0x178c]
mov ecx, dword [esp + 0x734]
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x40e789
cmp eax, 2
jne 0x40e78d
mov dword [esp + 0x14], esi
lea eax, [esp + 0x700]
push eax
call fcn.00409c50
lea esi, [esp + 0x1e0]
call fcn.00405c80
mov ebx, dword [esp + 0x1c]
xor esi, esi
mov edx, dword [0x44951c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44951c
call eax
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
push ecx
add eax, 0x10
mov dword [esp + 0x28], eax
push edi
push str.bAutoRecoveryApp__d___uAutoRecoveryValue__d
lea eax, [esp + 0x30]
call fcn.0040f120
mov edx, dword [esp + 0x30]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp edi, 1
je 0x40e7f9
cmp dword [esp + 0x20], 1
jne 0x40e96e
push 0x208
lea eax, [esp + 0x2de]
push esi
push eax
mov word [esp + 0x2e4], si
call fcn.0042a8d0
add esp, 0xc
push 0x820
lea ecx, [esp + 0x1ba6]
push esi
push ecx
mov word [esp + 0x1bac], si
call fcn.0042a8d0
add esp, 0xc
push 0x104
lea edx, [esp + 0x2dc]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40e87b
lea eax, [esp + 0x2d8]
push 0x5c
push eax
call fcn.00428955
add esp, 8
cmp eax, esi
je 0x40e868
add eax, 2
jmp 0x40e86f
lea eax, [esp + 0x2d8]
push str.dumpfix.exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [esp + 0x2d8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40e96e
test al, 0x10
jne 0x40e96e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.004038d0
mov ecx, dword [esp + 0x1a8]
add esp, 4
cmp dword [esp + 0x1b8], 8
jae 0x40e8c1
lea ecx, [esp + 0x1a4]
push eax
push ecx
lea edx, [esp + 0x2e0]
push edx
push str._s__restartapp__s__waitpid__d
mov ecx, 0x410
lea edi, [esp + 0x1bb0]
call fcn.0040bee0
add esp, 0x10
test eax, eax
jl 0x40e96e
push 0x40
lea eax, [esp + 0x1e8]
push 0
push eax
call fcn.0042a8d0
add esp, 0xc
xor eax, eax
lea ecx, [esp + 0xd4]
push ecx
lea edx, [esp + 0x1e4]
push edx
push eax
push eax
push 0x8000000
push eax
push eax
push eax
mov dword [esp + 0xf8], eax
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], eax
mov eax, edi
push eax
push 0
mov dword [esp + 0xfc], 0
mov dword [esp + 0x208], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [esp + 0xd8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0xd4]
push edx
call esi
xor esi, esi
mov eax, dword [esp + 0x30]
cmp eax, 0x40000
ja 0x40e9f3
je 0x40e9e6
cmp eax, 0xc000
ja 0x40e9c4
je 0x40e9b4
cmp eax, 0x15
je 0x40e9a4
cmp eax, 0xb000
jne 0x40ea32
mov dword [esp + 0x288], 3
jmp 0x40ea57
mov dword [esp + 0x288], 9
jmp 0x40ea57
mov dword [esp + 0x288], 5
jmp 0x40ea57
cmp eax, 0x11000
je 0x40e9d9
cmp eax, 0x11fff
jbe 0x40ea32
cmp eax, 0x12001
ja 0x40ea32
mov dword [esp + 0x288], 1
jmp 0x40ea57
mov dword [esp + 0x288], 7
jmp 0x40ea57
cmp eax, 0xa0000
ja 0x40ea24
je 0x40ea17
cmp eax, 0x50000
je 0x40ea4c
cmp eax, 0x90000
jne 0x40ea32
mov dword [esp + 0x288], 4
jmp 0x40ea57
mov dword [esp + 0x288], 6
jmp 0x40ea57
cmp eax, 0x110000
je 0x40ea4c
cmp eax, 0x111000
je 0x40ea3f
mov dword [esp + 0x288], 0x64
jmp 0x40ea57
mov dword [esp + 0x288], 8
jmp 0x40ea57
mov dword [esp + 0x288], 2
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
neg eax
sbb eax, eax
add eax, 2
neg ebx
sbb ebx, ebx
add ebx, 2
neg ecx
sbb ecx, ecx
add ecx, 2
cmp dword [esp + 0x198], esi
mov dword [esp + 0x298], eax
mov dword [esp + 0x290], ebx
mov dword [esp + 0x294], ecx
je 0x40eac7
cmp dword [esp + 0x19c], 8
mov eax, dword [esp + 0x188]
jae 0x40eaaa
lea eax, [esp + 0x188]
push str.BSOD
push eax
call fcn.004295b3
add esp, 8
test eax, eax
mov dword [esp + 0x28c], 2
jne 0x40ead2
mov dword [esp + 0x28c], 1
cmp dword [esp + 0x10], 1
mov edx, dword [esp + 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x29c], edx
jne 0x40ec3b
cmp dword [esp + 0x5c], 1
jne 0x40ec3b
mov edx, dword [esp + 0x188]
xor eax, eax
cmp dword [esp + 0x19c], 8
mov dword [esp + 0xec], 7
mov dword [esp + 0xe8], eax
mov word [esp + 0xd8], ax
jae 0x40eb2d
lea edx, [esp + 0x188]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40eb32
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0xdc]
call fcn.00407ac0
push 4
push 0x43fe9c
mov ecx, esi
call fcn.00406eb0
mov eax, dword [esp + 0x188]
mov ebx, 8
cmp dword [esp + 0x19c], ebx
jae 0x40eb79
lea eax, [esp + 0x188]
push eax
call edi
cmp dword [esp + 0xec], ebx
mov eax, dword [esp + 0xd8]
jae 0x40eb93
lea eax, [esp + 0xd8]
push eax
call edi
cmp dword [esp + 0x1b8], ebx
mov edx, dword [esp + 0x1a4]
jae 0x40ebad
lea edx, [esp + 0x1a4]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ebb2
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0xdc]
call fcn.00407ac0
push 4
push 0x43fe9c
mov ecx, esi
call fcn.00406eb0
mov eax, 1
cmp dword [esp + 0x14], eax
je 0x40ec08
cmp dword [esp + 0x20], eax
je 0x40ec08
cmp dword [esp + 0x1b8], ebx
mov eax, dword [esp + 0x1a4]
jae 0x40ec05
lea eax, [esp + 0x1a4]
push eax
call edi
cmp dword [esp + 0xec], ebx
mov eax, dword [esp + 0xd8]
jae 0x40ec1f
lea eax, [esp + 0xd8]
push eax
call edi
cmp dword [esp + 0xec], ebx
jb 0x40ec3b
mov eax, dword [esp + 0xd8]
push eax
call fcn.004282af
add esp, 4
call fcn.00411a50
mov esi, dword [esp + 0x2c]
xor ebx, ebx
cmp dword [esi - 0xc], ebx
je 0x40ec6d
cmp dword [esp + 0x148], 8
mov edx, dword [esp + 0x134]
jae 0x40ec63
lea edx, [esp + 0x134]
mov ecx, esi
call fcn.0041f2e0
push esi
call edi
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ec8d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x108], 8
jb 0x40eca7
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.004282af
add esp, 4
cmp dword [esp + 0x124], 8
mov edi, 7
mov dword [esp + 0x108], edi
mov dword [esp + 0x104], ebx
mov word [esp + 0xf4], bx
jb 0x40ecdc
mov edx, dword [esp + 0x110]
push edx
call fcn.004282af
add esp, 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x124], edi
mov dword [esp + 0x120], ebx
mov word [esp + 0x110], bx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ed12
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
jmp 0x40d131