Function at 0x431170
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d3485
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x64c00c]
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 ebx, ecx
call fcn.00451de0
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
mov eax, dword [0x65ccf8]
mov dword [ebp - 0x2c], esi
cmp eax, dword [esi + 4]
jle 0x4311e7
push 0x65ccf8
call fcn.00483c2d
add esp, 4
cmp dword [0x65ccf8], 0xffffffff
jne 0x4311e7
push 0x5d7ea0
call fcn.00484084
push 0x65ccf8
call fcn.00483be3
add esp, 8
call fcn.004518a0
push str.RunExe
call fcn.0040ff00
push eax
call fcn.00410290
add esp, 8
mov ecx, ebx
push str.cond_running
call fcn.0040efd0
or edi, 0xffffffff
test eax, eax
je 0x431337
push ecx
push 0x6381c4
mov edx, 0x6381d8
lea ecx, [ebp - 0x28]
call fcn.0042ed60
add esp, 8
mov esi, eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [0x65cc38]
cmp ecx, dword [eax + 4]
jle 0x43127f
push 0x65cc38
call fcn.00483c2d
add esp, 4
cmp dword [0x65cc38], edi
jne 0x43127f
mov byte [ebp - 4], 1
call fcn.00414990
push 0x5d7c10
call fcn.00484084
push 0x65cc38
mov byte [ebp - 4], 0
call fcn.00483be3
add esp, 8
lea eax, [ebp - 0x34]
mov ecx, 0x65cc40
push eax
call fcn.004127f0
mov byte [ebp - 4], 2
cmp dword [esi + 0x14], 8
jb 0x431299
mov esi, dword [esi]
mov edx, dword [ebp - 0x34]
lea ecx, [ebp - 0x30]
sub esp, 0xc
push esi
call fcn.00410bd0
add esp, 0x10
mov byte [ebp - 4], 4
mov eax, edi
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4312c9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.00408a60
push ecx
mov esi, esp
mov dword [ebp - 0x38], esi
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx - 0x10]
call fcn.00406d70
add eax, 0x10
mov dword [esi], eax
call fcn.0044d5f0
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
test eax, eax
jne 0x431320
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x431316
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 3
jmp 0x4314fc
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x431334
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x30]
mov ecx, ebx
push eax
call fcn.004324c0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43135a
mov dword [ebp - 0x34], 1
test al, 0x10
je 0x431361
mov dword [ebp - 0x34], 0
mov edx, dword [ebp - 0x30]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43137b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x34], 0
je 0x431451
mov eax, dword [0x65ccf8]
cmp eax, dword [esi + 4]
jle 0x4313bf
push 0x65ccf8
call fcn.00483c2d
add esp, 4
cmp dword [0x65ccf8], 0xffffffff
jne 0x4313bf
push 0x5d7ea0
call fcn.00484084
push 0x65ccf8
call fcn.00483be3
add esp, 8
call fcn.0044f160
test eax, eax
je 0x431451
push 0
push str.exe_param
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
call fcn.0040f190
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 6
push eax
mov ecx, ebx
call fcn.004324c0
push 0
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x2c]
mov ecx, dword [eax]
push 1
push 0
call fcn.0044b760
add esp, 0xc
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x38]
neg eax
sbb esi, esi
add edx, 0xfffffff0
neg esi
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43142b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x43144a
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
jmp 0x4314fc
push str.RunExe_Not_Exist
call fcn.0040ff00
push eax
call fcn.00410290
mov eax, dword [0x65cc38]
add esp, 8
cmp eax, dword [esi + 4]
jle 0x4314b1
push 0x65cc38
call fcn.00483c2d
add esp, 4
cmp dword [0x65cc38], 0xffffffff
jne 0x4314b1
mov dword [ebp - 4], 8
call fcn.00414990
push 0x5d7c10
call fcn.00484084
push 0x65cc38
mov dword [ebp - 4], 0xffffffff
call fcn.00483be3
add esp, 8
push 0
push str.download_type
push ecx
mov ecx, 0x65cc40
call fcn.00412ad0
mov esi, eax
mov ecx, ebx
push esi
push 1
call fcn.00431620
mov ecx, eax
cmp ecx, 1
jne 0x4314e5
push esi
mov ecx, ebx
call fcn.004303d0
mov eax, 1
jmp 0x4314fc
cmp ecx, 5
jne 0x4314ef
lea eax, [ecx - 3]
jmp 0x4314fc
xor eax, eax
mov edx, 5
cmp ecx, 2
cmove eax, edx
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.00483ab6
mov esp, ebp
pop ebp
ret