Function at 0x440030
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x599da0
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x63434c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x8c], eax
cmp dword [esi + 0x10], 0
mov dword [ebp - 0x9c], edi
je 0x440443
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x440087
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x440443
push 1
xor eax, eax
mov dword [ebp - 0x40], 0
push 0x5b69ac
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.0042e2d0
push esi
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0043f330
add esp, 0xc
push 1
push 0x5b69ac
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0043ee20
mov ecx, dword [eax + 4]
mov ebx, dword [eax + 0x10]
mov esi, dword [eax]
mov dword [ebp - 0x54], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x50], ecx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0x44], ecx
xor ecx, ecx
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x48], ebx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x88]
call fcn.0042aad0
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x440178
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44016e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x440461
push edx
push ecx
call fcn.00558004
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov eax, 0x7ffffffe
sub eax, ebx
mov dword [ebp - 0x2c], 7
cmp eax, 1
jb 0x440466
cmp dword [ebp - 0xa0], 8
lea eax, [ebp - 0x58]
mov dword [ebp - 0x28], 0
cmovae eax, esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x94], eax
mov esi, 7
lea eax, [ebx + 1]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x90], eax
lea ebx, [ebp - 0x28]
cmp eax, esi
jbe 0x44020e
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x4401ed
mov esi, 0x7ffffffe
jmp 0x4401f7
mov eax, 0xa
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x28]
call fcn.0042e270
mov ebx, eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x98]
add esi, esi
mov dword [ebp - 0x18], eax
push esi
push dword [ebp - 0x94]
push ebx
call fcn.0055bfb0
mov eax, 0x20
xor ecx, ecx
mov word [esi + ebx], ax
mov eax, dword [ebp - 0x98]
mov word [ebx + eax*2 + 2], cx
push dword [ebp - 0x8c]
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0043f330
add esp, 0x18
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 7
cmp edx, 8
jb 0x440297
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44028d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44046b
push edx
push ecx
call fcn.00558004
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
xor esi, esi
mov dword [ebp - 0x94], eax
xor ebx, ebx
mov eax, dword [ebp - 0x60]
xor ecx, ecx
add eax, 1
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x8c], eax
je 0x440336
cmp eax, 0x7fffffff
ja 0x440470
push eax
lea ecx, [ebp - 0x34]
call fcn.0042e270
mov ecx, dword [ebp - 0x8c]
lea edi, [ebp - 0x94]
mov esi, eax
mov dword [ebp - 0x8c], 0
mov ax, word [edi]
lea edi, [ebp - 0x8c]
cmp ax, word [edi]
mov edi, dword [ebp - 0x9c]
lea edx, [ecx + ecx]
lea ebx, [esi + edx]
mov dword [ebp - 0x90], ebx
jne 0x440321
push edx
push 0
push esi
call fcn.0055c530
add esp, 0xc
mov ecx, ebx
jmp 0x440336
xor eax, eax
mov edi, esi
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x9c]
mov ecx, ebx
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
sub ecx, esi
push eax
sar ecx, 1
push ecx
push esi
call fcn.0056b39c
xor eax, eax
mov dword [ebp - 0xf4], 0x44
push 0x40
push eax
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0xf0]
push eax
call fcn.0055c530
add esp, 0x18
cmp dword [edi + 0x10], 0
jne 0x44038d
xor edi, edi
jmp 0x440395
cmp dword [edi + 0x14], 8
jb 0x440395
mov edi, dword [edi]
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xf4]
push eax
push edi
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4403c7
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0xb0]
test esi, esi
je 0x4403fe
sub ebx, esi
mov eax, esi
and ebx, 0xfffffffe
cmp ebx, 0x1000
jb 0x4403f4
mov esi, dword [esi - 4]
add ebx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x440475
push ebx
push esi
call fcn.00558004
add esp, 8
lea ecx, [ebp - 0x70]
call fcn.0042aad0
mov eax, dword [ebp - 0xa0]
cmp eax, 8
jb 0x44043f
mov edx, dword [ebp - 0x58]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x440435
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x440475
push ecx
push edx
call fcn.00558004
add esp, 8
mov eax, edi
jmp 0x440445
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00557e89
mov esp, ebp
pop ebp
ret
call fcn.00566a14
call fcn.0042e200
call fcn.00566a14
call fcn.0042a260
call fcn.00566a14
int3