Function at 0x40c381
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bc309
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x78
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x40c3e2
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x48], eax
push dword [ebp - 0x40]
push 0
push dword [ebp - 0x44]
push dword [ebp - 0x48]
mov eax, dword [ebp - 0x4c]
movzx eax, byte [eax]
push eax
call fcn.0041a266
add esp, 0x14
jmp 0x40c5fa
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x24], 0
push 2
lea ecx, [ebp - 0x70]
call fcn.00406726
mov dword [ebp - 0x18], 0
jmp 0x40c409
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 2
jge 0x40c41f
push dword [ebp - 0x18]
lea ecx, [ebp - 0x70]
call fcn.00406814
and dword [eax], 0
jmp 0x40c402
mov dword [ebp - 0x18], 0
jmp 0x40c42f
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
jge 0x40c442
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x54], 1
jmp 0x40c428
mov byte [ebp - 0x11], 0
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x40c456
push 0
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
mov dword [ebp - 0x3c], 0x19e3
mov dword [ebp - 0x58], str.pfbvchez_jijfftc_igmilm_yguh_baoj_aeen_xxycuet_gvjmi_dgchsowno_ujdwirg_zlfo_npcrooeb
cmp dword [ebp - 0x3c], 0x1adb
jle 0x40c4e1
push 0x982
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [ebp - 0x24], 0xed06
jg 0x40c4f3
mov dword [ebp - 0x28], 1
jmp 0x40c4f7
and dword [ebp - 0x28], 0
imul esi, dword [ebp - 0x28], 5
sub esi, dword [ebp - 0x24]
push 1
lea ecx, [ebp - 0x70]
call fcn.00406814
mov dword [eax], esi
push 1
lea ecx, [ebp - 0x70]
call fcn.00406814
mov ecx, dword [ebp - 0x24]
cmp dword [eax], ecx
jle 0x40c524
mov dword [ebp - 0x2c], 1
jmp 0x40c528
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x2c], eax
jg 0x40c539
mov dword [ebp - 0x30], 1
jmp 0x40c53d
and dword [ebp - 0x30], 0
cmp dword [ebp - 0x30], 0xcecb4571
je 0x40c54f
mov dword [ebp - 0x34], 1
jmp 0x40c553
and dword [ebp - 0x34], 0
cmp dword [ebp - 0x34], 0x34688073
jg 0x40c578
mov byte [ebp - 0x12], 0
movzx eax, byte [ebp - 0x12]
test eax, eax
je 0x40c576
push 0
push 0
push 0
push 0
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
jmp 0x40c5a4
mov dword [ebp - 0x50], 0x9ed8
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x38], eax
push 1
lea ecx, [ebp - 0x70]
call fcn.00406814
mov ecx, dword [ebp - 0x38]
mov dword [eax], ecx
mov eax, dword [ebp - 0x38]
sub eax, 4
push 4
pop ecx
imul ecx, ecx, 0
mov dword [ebp + ecx - 0x54], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x3c], 0x1715
jge 0x40c5ba
push dword [ebp - 0x58]
call fcn.004a68c7
pop ecx
jmp 0x40c5d6
or dword [ebp - 4], 0xffffffff
jmp 0x40c5e0
lea ecx, [ebp - 0x70]
call fcn.004067f8
push dword [ebp - 0x5c]
push 0
push 0x73e9
call fcn.0040a3f4
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret