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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
call fcn.0040205e
mov dword [ebp - 0x14], eax
push 0x80000301
push 0
push dword [0x4b5ac9]
push 1
mov ebx, 0x168
call fcn.0044e9f0
add esp, 0x10
mov dword [ebp - 0x18], eax
push str..DAT
push dword [ebp - 0x18]
push dword [ebp - 0x14]
mov ecx, 3
call fcn.0040119e
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40b373
push ebx
call fcn.0044dbce
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40b383
push ebx
call fcn.0044dbce
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b397
push ebx
call fcn.0044dbce
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], esp
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x40b3bd
push 6
call fcn.0044dbd4
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 1
jne 0x40b457
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push 2
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40b3f5
mov eax, 0x499305
push eax
push 3
mov ebx, 0x270
call fcn.0044e790
add esp, 0x28
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40b457
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x278
call fcn.0044e870
add esp, 0x10
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40b444
mov eax, 0x499305
push eax
push 1
mov ebx, 0x244
call fcn.0044e320
add esp, 0x10
mov ebx, dword [0x4b5b0d]
add ebx, 0x1c
mov dword [ebp - 0x14], ebx
push 0x499305
mov ebx, dword [ebp - 0x14]
push dword [ebx]
call fcn.00401096
add esp, 8
cmp eax, 0
je 0x40b4c7
mov ebx, dword [0x4b5b0d]
add ebx, 0x1c
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esp
push 1
push 0x499305
push 0x499305
mov ebx, dword [ebp - 0x14]
push dword [ebx]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40b4c7
push 6
call fcn.0044dbd4
add esp, 4
call fcn.0040205e
mov dword [ebp - 0x14], eax
push str.c3.Dnp
push dword [ebp - 0x14]
mov ecx, 2
call fcn.0040119e
add esp, 8
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40b4f7
push ebx
call fcn.0044dbce
add esp, 4
mov dword [ebp - 0x1c], esp
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x40b519
push 6
call fcn.0044dbd4
add esp, 4
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40b52c
push ebx
call fcn.0044dbce
add esp, 4
cmp dword [ebp - 0x20], 0
je 0x40b6e2
call fcn.0040205e
mov dword [ebp - 0x14], eax
push str.c3.Dnp
push dword [ebp - 0x14]
mov ecx, 2
call fcn.0040119e
add esp, 8
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40b566
push ebx
call fcn.0044dbce
add esp, 4
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40b579
mov eax, 0x499305
push eax
push 1
mov ebx, 0x258
call fcn.004507f0
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40b59f
push ebx
call fcn.0044dbce
add esp, 4
cmp dword [ebp - 0x1c], 0x14dc9380
jle 0x40b6e2
call fcn.0040205e
mov dword [ebp - 0x14], eax
push str.c3.Dnp
push dword [ebp - 0x14]
mov ecx, 2
call fcn.0040119e
add esp, 8
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40b5dc
push ebx
call fcn.0044dbce
add esp, 4
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push 2
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40b607
mov eax, 0x499305
push eax
push 3
mov ebx, 0x270
call fcn.0044e790
add esp, 0x28
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40b62d
push ebx
call fcn.0044dbce
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40b6e2
push 0x80000301
push 0
push dword [ebp - 0xc]
push 1
mov ebx, 0x28c
call fcn.00450aa0
add esp, 0x10
push reloc.WSOCK32.dll_getpeername
push 0
push 0x4b2163
push 0x80000301
push 0
push 0xc350
push 2
mov ebx, 0x1c0
call fcn.00451800
add esp, 0x1c
mov dword [ebp - 0x14], eax
push reloc.WSOCK32.dll_getpeername
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x40b699
mov eax, 0x499775
push eax
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0x298
call fcn.00450b00
add esp, 0x1c
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40b6c6
push ebx
call fcn.0044dbce
add esp, 4
push 0x80000301
push 0
push dword [ebp - 0xc]
push 1
mov ebx, 0x278
call fcn.0044e870
add esp, 0x10
call fcn.0040205e
mov dword [ebp - 0x14], eax
push str.data.Dnp
push dword [ebp - 0x14]
mov ecx, 2
call fcn.0040119e
add esp, 8
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40b712
push ebx
call fcn.0044dbce
add esp, 4
mov dword [ebp - 0x1c], esp
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x40b734
push 6
call fcn.0044dbd4
add esp, 4
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40b747
push ebx
call fcn.0044dbce
add esp, 4
cmp dword [ebp - 0x20], 0
je 0x40b8fd
call fcn.0040205e
mov dword [ebp - 0x14], eax
push str.data.Dnp
push dword [ebp - 0x14]
mov ecx, 2
call fcn.0040119e
add esp, 8
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40b781
push ebx
call fcn.0044dbce
add esp, 4
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40b794
mov eax, 0x499305
push eax
push 1
mov ebx, 0x258
call fcn.004507f0
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40b7ba
push ebx
call fcn.0044dbce
add esp, 4
cmp dword [ebp - 0x1c], 0x23c34600
jle 0x40b8fd
call fcn.0040205e
mov dword [ebp - 0x14], eax
push str.data.Dnp
push dword [ebp - 0x14]
mov ecx, 2
call fcn.0040119e
add esp, 8
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40b7f7
push ebx
call fcn.0044dbce
add esp, 4
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push 2
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40b822
mov eax, 0x499305
push eax
push 3
mov ebx, 0x270
call fcn.0044e790
add esp, 0x28
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40b848
push ebx
call fcn.0044dbce
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40b8fd
push 0x80000301
push 0
push dword [ebp - 0x10]
push 1
mov ebx, 0x28c
call fcn.00450aa0
add esp, 0x10
push reloc.WSOCK32.dll_getpeername
push 0
push 0x4b2163
push 0x80000301
push 0
push 0xc350
push 2
mov ebx, 0x1c0
call fcn.00451800
add esp, 0x1c
mov dword [ebp - 0x14], eax
push reloc.WSOCK32.dll_getpeername
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x40b8b4
mov eax, 0x499775
push eax
push 0x80000301
push 0
push dword [ebp - 0x10]
push 2
mov ebx, 0x298
call fcn.00450b00
add esp, 0x1c
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40b8e1
push ebx
call fcn.0044dbce
add esp, 4
push 0x80000301
push 0
push dword [ebp - 0x10]
push 1
mov ebx, 0x278
call fcn.0044e870
add esp, 0x10
push 0x4b5b69
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
push 0x4b5b61
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
call fcn.00402570
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b930
push ebx
call fcn.0044dbce
add esp, 4
mov esp, ebp
pop ebp
ret