Function at 0x40cb30
Capabilities:
Check if file exists
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4206eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa40
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
push edi
push ebx
lea eax, [esi + 0x20]
mov dword [esi + 0x58], 1
push eax
call dword [0x4223a4]
test eax, eax
je 0x40cb93
mov dword [0x42eb84], 1
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [0x4223b0]
push 0
call dword [0x4223e8]
jmp 0x40ce6f
push edi
lea edx, [esi + 0x30]
push ebx
push edx
call dword [0x4223a4]
test eax, eax
je 0x40cc6d
mov dword [0x42eb84], 2
mov eax, dword [esi + 4]
push 0
push eax
call dword [0x4223b0]
mov ecx, dword [0x42eb3c]
mov edx, dword [0x4221b4]
test ecx, ecx
jne 0x40cbcf
mov ecx, edx
mov eax, dword [0x42eb2c]
test eax, eax
jne 0x40cbda
mov eax, edx
push ecx
push eax
mov ecx, esi
call fcn.0040d080
test eax, eax
jne 0x40cc01
mov eax, dword [0x42eaac]
test eax, eax
jne 0x40cbf5
mov eax, dword [0x4221b4]
push eax
mov ecx, esi
call fcn.0040c9e0
test eax, eax
je 0x40cc60
mov eax, dword [0x42eafc]
test eax, eax
jne 0x40cc14
mov eax, dword [0x4221b4]
mov dword [ebp + 0x10], eax
jmp 0x40cc17
mov dword [ebp + 0x10], eax
test eax, eax
jne 0x40cc1f
xor ebx, ebx
jmp 0x40cc4f
push eax
call dword [0x4220e8]
mov edi, eax
inc edi
lea eax, [edi + edi]
add eax, 3
and al, 0xfc
call fcn.00417920
mov ecx, dword [ebp + 0x10]
mov ebx, esp
push edi
push ebx
push 0xffffffffffffffff
push ecx
push 0
push 0
mov word [ebx], 0
call dword [0x4220ec]
mov edx, dword [esi + 0x54]
mov eax, dword [esi + 0x50]
push ebx
push edx
push eax
call fcn.004140e0
add esp, 0xc
push 0
call dword [0x4223e8]
jmp 0x40ce6f
push edi
lea ecx, [esi + 0x40]
push ebx
push ecx
call dword [0x4223a4]
test eax, eax
je 0x40ce6f
mov dword [0x42eb84], 3
mov edx, dword [esi + 4]
xor ebx, ebx
push ebx
push edx
call dword [0x4223b0]
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x212]
mov word [ebp - 0x214], bx
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0xa4c]
stosw word es:[edi], ax
call fcn.00413310
lea eax, [ebp - 0x214]
push 0x103
push eax
lea ecx, [ebp - 0xa4c]
mov dword [ebp - 4], ebx
call fcn.00413460
mov edi, dword [0x42234c]
test eax, eax
je 0x40cd58
cmp word [ebp - 0x214], bx
je 0x40cd58
lea ecx, [ebp - 0x214]
push ecx
call edi
test eax, eax
je 0x40cd58
mov ebx, dword [0x42ea9c]
test ebx, ebx
jne 0x40cd0d
mov ebx, dword [0x4221b4]
test ebx, ebx
jne 0x40cd0d
xor edi, edi
jmp 0x40cd3a
push ebx
call dword [0x4220e8]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00417920
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov word [edi], 0
call dword [0x4220ec]
push 1
push 0
lea edx, [ebp - 0x214]
push edi
push edx
push str.open
push 0
call dword [0x422318]
jmp 0x40ce55
lea eax, [ebp - 0x214]
push 0x103
push eax
lea ecx, [ebp - 0xa4c]
call fcn.00413500
test eax, eax
je 0x40cd8d
cmp word [ebp - 0x214], bx
je 0x40cd8d
lea ecx, [ebp - 0x214]
push ecx
call edi
test eax, eax
jne 0x40ccf5
lea eax, [ebp - 0x214]
push 0x103
push eax
lea ecx, [ebp - 0xa4c]
call fcn.00413670
test eax, eax
je 0x40cdc2
cmp word [ebp - 0x214], bx
je 0x40cdc2
lea ecx, [ebp - 0x214]
push ecx
call edi
test eax, eax
jne 0x40ccf5
lea ecx, [ebp - 0xa4c]
call fcn.00413710
mov esi, eax
cmp esi, ebx
mov dword [ebp + 0x10], esi
je 0x40ce3a
push esi
call edi
test eax, eax
je 0x40ce3a
mov ebx, dword [0x42ea9c]
test ebx, ebx
jne 0x40cdf5
mov ebx, dword [0x4221b4]
test ebx, ebx
jne 0x40cdf5
xor edi, edi
jmp 0x40ce25
push ebx
call dword [0x4220e8]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00417920
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov word [edi], 0
call dword [0x4220ec]
mov esi, dword [ebp + 0x10]
push 1
push 0
push edi
push esi
push str.open
push 0
call dword [0x422318]
jmp 0x40ce55
mov eax, dword [0x42ea9c]
cmp eax, ebx
jne 0x40ce48
mov eax, dword [0x4221b4]
push 5
push ebx
push ebx
push eax
push ebx
push ebx
call dword [0x42231c]
push 0
call dword [0x4223e8]
lea ecx, [ebp - 0xa4c]
mov dword [ebp - 4], 0xffffffff
call fcn.00413390
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0xa58]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc