Function at 0x401680
Capabilities:
Get common file path
Move file
Read file on windows
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413c60
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x14a8
call fcn.00413a20
mov eax, dword [0x41c040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebx + 0x10]
xorps xmm0, xmm0
mov esi, edi
mov dword [ebp - 0x1494], edi
movups xmmword [ebp - 0x1474], xmm0
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4016e0
sub esi, ecx
sar esi, 1
cmp esi, 0x7ffffffe
ja 0x402323
cmp esi, 7
ja 0x401732
mov dword [ebp - 0x1464], esi
lea eax, [ebp - 0x1474]
add esi, esi
mov dword [ebp - 0x1460], 7
push esi
push edi
push eax
call fcn.00404a60
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x1474], ax
jmp 0x4017de
mov edi, esi
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x40174d
mov eax, 0x7fffffff
mov edi, 0x7ffffffe
add eax, eax
jmp 0x40176e
mov eax, 0xa
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
cmp eax, 0x7fffffff
ja 0x402355
add eax, eax
cmp eax, 0x1000
jb 0x401797
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x402355
push ecx
call fcn.0040397c
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x40233c
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x4017a8
test eax, eax
je 0x4017a6
push eax
call fcn.0040397c
add esp, 4
jmp 0x4017a8
xor eax, eax
mov dword [ebp - 0x1464], esi
add esi, esi
push esi
push dword [ebp - 0x1494]
mov dword [ebp - 0x1430], eax
push eax
mov dword [ebp - 0x1474], eax
mov dword [ebp - 0x1460], edi
call fcn.00404a60
mov eax, dword [ebp - 0x1430]
add esp, 0xc
xor ecx, ecx
mov word [eax + esi], cx
cmp dword [ebp - 0x1460], 7
lea edx, [ebp - 0x1474]
mov eax, dword [ebp - 0x1464]
lea edi, [ebp - 0x1474]
cmova edx, dword [ebp - 0x1474]
xorps xmm0, xmm0
cmova edi, dword [ebp - 0x1474]
movups xmmword [ebp - 0x145c], xmm0
lea eax, [edx + eax*2]
xor edx, edx
mov dword [ebp - 0x1494], eax
mov dword [ebp - 0x144c], edx
cmp edi, eax
jne 0x40183a
mov eax, 0xf
mov byte [ebp - 0x145c], dl
mov dword [ebp - 0x1448], eax
jmp 0x40192b
sub eax, edi
mov esi, 0xf
sar eax, 1
mov dword [ebp - 0x1448], esi
cmp eax, 0x7fffffff
ja 0x402323
cmp eax, esi
jbe 0x4018d2
mov esi, eax
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x401874
mov ecx, 0x80000000
mov esi, 0x7fffffff
add ecx, 0x23
jmp 0x401893
mov eax, 0x16
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x1000
jb 0x4018b3
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x402355
push ecx
call fcn.0040397c
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x40233c
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
xor edx, edx
mov dword [eax - 4], ecx
jmp 0x4018c6
test eax, eax
je 0x4018c4
push eax
call fcn.0040397c
add esp, 4
xor edx, edx
jmp 0x4018c6
xor eax, eax
mov dword [ebp - 0x145c], eax
mov dword [ebp - 0x1448], esi
mov al, byte [edi]
lea ecx, [ebp - 0x145c]
cmp esi, 0xf
cmova ecx, dword [ebp - 0x145c]
add edi, 2
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x144c]
inc edx
mov dword [ebp - 0x144c], edx
cmp edi, dword [ebp - 0x1494]
je 0x401907
mov esi, dword [ebp - 0x1448]
jmp 0x4018d2
cmp dword [ebp - 0x1448], 0xf
lea eax, [ebp - 0x145c]
cmova eax, dword [ebp - 0x145c]
mov byte [edx + eax], 0
mov edx, dword [ebp - 0x144c]
mov eax, dword [ebp - 0x1448]
mov edi, dword [ebp - 0x145c]
lea ecx, [ebp - 0x145c]
cmp eax, 0xf
cmova ecx, edi
cmp edx, 2
jne 0x4019a0
mov esi, 0x419b1c
sub edx, 4
jb 0x401961
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x401966
add ecx, 4
add esi, 4
sub edx, 4
jae 0x401950
cmp edx, 0xfffffffc
je 0x40199a
mov al, byte [ecx]
cmp al, byte [esi]
jne 0x401993
cmp edx, 0xfffffffd
je 0x40199a
mov al, byte [ecx + 1]
cmp al, byte [esi + 1]
jne 0x401993
cmp edx, 0xfffffffe
je 0x40199a
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x401993
cmp edx, 0xffffffff
je 0x40199a
mov al, byte [ecx + 3]
cmp al, byte [esi + 3]
je 0x40199a
sbb eax, eax
or eax, 1
jmp 0x40199c
xor eax, eax
test eax, eax
je 0x4019bd
push 0x34
push str.PowerShell
push str.Are_You_sure_you_want_to_run_this_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
je 0x402291
mov dword [ebp - 4], 0
call fcn.00401160
mov ecx, eax
test ecx, ecx
je 0x402328
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x143c], eax
lea eax, [ebp - 0x428]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x220]
push eax
push 0
push 0x419b80
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401a20
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x143c]
call fcn.00402e50
mov dword [ebp - 4], 1
call fcn.00401160
mov ecx, eax
test ecx, ecx
je 0x402328
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov dword [ebp - 4], 0xffffffff
mov ecx, 1
sub ecx, dword [eax + 0xc]
lea esi, [eax + 0x10]
mov eax, dword [esi - 8]
sub eax, 0x104
mov dword [ebp - 0x142c], esi
or eax, ecx
jge 0x401a99
push 0x104
lea ecx, [ebp - 0x142c]
call fcn.00402de0
mov esi, dword [ebp - 0x142c]
cmp dword [esi - 8], 0x104
lea eax, [esi - 0x10]
mov dword [ebp - 0x149c], eax
jl 0x402332
push 0x104
mov dword [eax + 4], 0x104
xor eax, eax
push esi
push eax
mov word [esi + 0x208], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x401ad8
call edi
push dword [esi - 8]
push esi
call fcn.00408231
add esp, 8
test eax, eax
js 0x402332
cmp eax, dword [esi - 8]
jg 0x402332
xor ecx, ecx
mov dword [esi - 0xc], eax
push ecx
push 0x80
push 3
push ecx
push 1
push 0x80000000
push esi
mov word [esi + eax*2], cx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push 0
push 0xfffffffffffffffc
push eax
mov dword [ebp - 0x1498], eax
mov dword [ebp - 0x1444], 0
mov dword [ebp - 0x1440], 0
call esi
cmp eax, 0xffffffff
jne 0x401b45
call edi
push 0
lea eax, [ebp - 0x1444]
push eax
push 4
lea eax, [ebp - 0x1440]
push eax
push dword [ebp - 0x1498]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401b69
call edi
mov eax, dword [ebp - 0x1440]
add eax, dword [ebp - 0x1444]
push 2
push 0
neg eax
push eax
push dword [ebp - 0x1498]
call esi
cmp eax, 0xffffffff
jne 0x401b8b
call edi
mov dword [ebp - 4], 2
call fcn.00401160
mov ecx, eax
test ecx, ecx
je 0x402328
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov dword [ebp - 4], 0xffffffff
mov ecx, 1
sub ecx, dword [eax + 0xc]
lea esi, [eax + 0x10]
mov eax, dword [esi - 8]
sub eax, 0x104
mov dword [ebp - 0x1430], esi
or eax, ecx
jge 0x401be2
push 0x104
lea ecx, [ebp - 0x1430]
call fcn.00402de0
mov esi, dword [ebp - 0x1430]
cmp dword [esi - 8], 0x104
lea edi, [esi - 0x10]
jl 0x402332
xor eax, eax
mov dword [edi + 4], 0x104
push eax
mov word [esi + 0x208], ax
lea eax, [ebp - 0x1444]
push eax
push 0x104
push esi
push dword [ebp - 0x1498]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401c26
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [edi + 8]
push esi
call fcn.00408231
add esp, 8
test eax, eax
js 0x402332
cmp eax, dword [edi + 8]
jg 0x402332
xor ecx, ecx
mov dword [edi + 4], eax
mov word [esi + eax*2], cx
mov dword [ebp - 0x1494], ecx
cmp dword [edi + 4], ecx
jl 0x401f2d
push 0x419b88
push esi
call fcn.004047f5
add esp, 8
test eax, eax
je 0x401f2d
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x401f2d
mov eax, dword [edi + 4]
mov dword [ebp - 0x1490], eax
inc eax
push eax
mov dword [ebp - 0x1494], eax
call fcn.00408176
add esp, 4
mov dword [ebp - 0x1434], eax
mov ecx, edi
mov dword [eax], 0
call fcn.00402d00
cmp dword [eax + 0xc], 1
lea esi, [eax + 0x10]
mov dword [ebp - 0x142c], esi
jle 0x401ccd
push dword [eax + 4]
lea ecx, [ebp - 0x142c]
call fcn.00402c40
mov esi, dword [ebp - 0x142c]
push 0
push 0
push dword [ebp - 0x1494]
push dword [ebp - 0x1434]
push dword [ebp - 0x1490]
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x401d09
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x1434]
lea ecx, [ebp - 0x148c]
push esi
call fcn.004026c0
push esi
call fcn.00406710
sub esp, 0x14
mov ecx, esp
push str.console
call fcn.004026c0
sub esp, 0x18
lea eax, [ebp - 0x148c]
mov ecx, esp
push eax
call fcn.004027d0
lea ecx, [ebp - 0x14b4]
call fcn.004014f0
add esp, 0x30
mov dword [ebp - 0x142c], eax
cmp dword [eax + 0x14], 0xf
jbe 0x401d63
mov eax, dword [eax]
mov dword [ebp - 0x142c], eax
call fcn.00401160
mov ecx, eax
test ecx, ecx
je 0x402328
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov eax, dword [ebp - 0x142c]
mov dword [ebp - 0x1434], esi
test eax, eax
je 0x401e1e
test eax, 0xffff0000
jne 0x401dab
movzx eax, ax
lea ecx, [ebp - 0x1434]
push eax
call fcn.00402a30
jmp 0x401e29
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
dec eax
mov dword [ebp - 0x1490], eax
test eax, eax
jle 0x401e1e
mov ecx, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub ecx, eax
or ecx, edx
jge 0x401df0
push eax
lea ecx, [ebp - 0x1434]
call fcn.00402de0
mov esi, dword [ebp - 0x1434]
mov eax, dword [ebp - 0x1490]
push eax
push esi
push 0xffffffffffffffff
push dword [ebp - 0x142c]
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x1490]
cmp eax, dword [esi - 8]
jg 0x402332
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
jmp 0x401e2f
lea ecx, [ebp - 0x1434]
call fcn.00402f70
mov esi, dword [ebp - 0x1434]
mov ecx, dword [ebp - 0x14a0]
cmp ecx, 0xf
jbe 0x401e69
mov edx, dword [ebp - 0x14b4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401e5f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40233c
push ecx
push edx
call fcn.0040394b
add esp, 8
lea edx, [esi - 0x10]
mov dword [ebp - 0x1490], edx
cmp edx, edi
je 0x401ed4
mov eax, dword [edi + 0xc]
shr eax, 0x1f
test al, al
jne 0x401ebf
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x401ebf
mov ecx, edx
call fcn.00402d00
mov dword [ebp - 0x1494], eax
lea edx, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401eb4
mov esi, dword [edi]
push edi
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
mov ecx, esi
call edx
mov eax, dword [ebp - 0x1494]
add eax, 0x10
mov dword [ebp - 0x1430], eax
jmp 0x401ece
push dword [edx + 4]
lea ecx, [ebp - 0x1430]
push esi
call fcn.00402e50
mov edx, dword [ebp - 0x1490]
mov dword [ebp - 0x1494], 1
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x401ef3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x1478]
cmp ecx, 0xf
jbe 0x401f2d
mov edx, dword [ebp - 0x148c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401f23
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402341
push ecx
push edx
call fcn.0040394b
add esp, 8
push 0
lea eax, [ebp - 0x1444]
push eax
push 4
lea eax, [ebp - 0x1440]
push eax
push dword [ebp - 0x1498]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401f55
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x143c]
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x1440]
xorps xmm0, xmm0
movlpd qword [ebp - 0x1438], xmm0
mov esi, eax
mov edx, dword [ebp - 0x1434]
mov edi, dword [ebp - 0x1438]
mov dword [ebp - 0x142c], eax
mov dword [ebp - 0x1490], edx
nop
test ecx, ecx
jne 0x401fab
mov ecx, 0x1000
jmp 0x401fd9
sub ecx, edi
mov eax, 0
sbb eax, edx
test eax, eax
jb 0x401fd3
ja 0x401fc2
cmp ecx, 0x1000
jbe 0x401fd3
mov ecx, 0x1000
mov dword [ebp - 0x1434], 0
jmp 0x401fd9
mov dword [ebp - 0x1434], eax
push 0
lea eax, [ebp - 0x1434]
mov dword [ebp - 0x1434], ecx
push eax
push ecx
lea eax, [ebp - 0x1428]
push eax
push dword [ebp - 0x1498]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x1434]
test eax, eax
je 0x402024
push 0
lea ecx, [ebp - 0x1434]
push ecx
push eax
lea eax, [ebp - 0x1428]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x1434]
mov edx, dword [ebp - 0x1490]
add edi, eax
mov ecx, dword [ebp - 0x1440]
adc edx, 0
mov dword [ebp - 0x1490], edx
test edx, edx
ja 0x40204d
jb 0x402045
cmp edi, ecx
jae 0x40204d
test eax, eax
jne 0x401fa0
push dword [ebp - 0x142c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x1498]
call edi
push ecx
lea edx, [ebp - 0x143c]
lea ecx, [ebp - 0x1498]
call fcn.004028d0
mov esi, dword [ebp - 0x143c]
add esp, 4
push dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov edx, dword [ebp - 0x1498]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4020a5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi - 0xc]
mov edi, str..ps1
push 4
sub edi, esi
mov dword [ebp - 0x142c], ecx
push str..ps1
sar edi, 1
call fcn.00408231
mov edx, eax
mov ecx, 0x7fffffff
mov eax, dword [ebp - 0x142c]
sub ecx, edx
add esp, 8
mov dword [ebp - 0x1490], edx
cmp ecx, eax
jl 0x402332
lea ecx, [edx + eax]
test ecx, ecx
js 0x402332
mov eax, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub eax, ecx
or eax, edx
jge 0x402111
push ecx
lea ecx, [ebp - 0x143c]
call fcn.00402de0
mov esi, dword [ebp - 0x143c]
mov eax, dword [ebp - 0x142c]
lea edx, [esi + edi*2]
cmp edi, eax
jbe 0x402123
mov edx, str..ps1
mov ecx, dword [ebp - 0x1490]
lea eax, [esi + eax*2]
add ecx, ecx
je 0x402160
test eax, eax
je 0x402150
push ecx
test edx, edx
je 0x402145
push edx
push eax
call fcn.00404a60
add esp, 0xc
jmp 0x402160
push 0
push eax
call fcn.00404fe0
add esp, 0xc
call fcn.004069b1
mov dword [eax], 0x16
call fcn.004068d7
mov eax, dword [ebp - 0x1490]
lea edi, [esi - 0x10]
add eax, dword [ebp - 0x142c]
cmp eax, dword [edi + 8]
jg 0x402332
mov dword [edi + 4], eax
xor ecx, ecx
push esi
mov word [esi + eax*2], cx
lea eax, [ebp - 0x1430]
push str.__ExecutionPolicy_Bypass__file___s_
push eax
call fcn.00403060
add esp, 0xc
call fcn.00401160
mov ecx, eax
test ecx, ecx
je 0x402346
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
lea ecx, [ebp - 0x142c]
mov dword [ebp - 0x142c], eax
mov eax, str._windir_System32WindowsPowerShell_v1.0powershell.exe
test eax, 0xffff0000
jne 0x4021d2
movzx eax, ax
push eax
call fcn.00402a30
jmp 0x4021de
push 0x37
push str._windir_System32WindowsPowerShell_v1.0powershell.exe
call fcn.00402e50
mov eax, dword [ebp - 0x1430]
add eax, 0xfffffff0
push ecx
mov ecx, eax
mov dword [ebp - 0x1430], eax
mov esi, esp
call fcn.00402d00
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x142c]
add eax, 0xfffffff0
push ecx
mov ecx, eax
mov dword [ebp - 0x1490], eax
mov esi, esp
call fcn.00402d00
mov ecx, dword [ebp - 0x1494]
add eax, 0x10
mov dword [esi], eax
call fcn.00402360
mov edx, dword [ebp - 0x1490]
or esi, 0xffffffff
add esp, 8
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402245
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1430]
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40225f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x149c]
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402279
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x40228b
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x145c]
mov ecx, dword [ebp - 0x1448]
cmp ecx, 0xf
jbe 0x4022c5
inc ecx
mov eax, edi
cmp ecx, 0x1000
jb 0x4022bb
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402350
push ecx
push edi
call fcn.0040394b
add esp, 8
mov ecx, dword [ebp - 0x1460]
cmp ecx, 7
jbe 0x402301
mov edx, dword [ebp - 0x1474]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4022f7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402350
push ecx
push edx
call fcn.0040394b
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00403637
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
call fcn.004014e0
push 0x80004005
call fcn.00401030
push 0x80070057
call fcn.00401030
call fcn.004068e7
call fcn.004068e7
push 0x80004005
call fcn.00401030
call fcn.004068e7
call fcn.00401440
int3