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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xe
push 0
push 0
dec ecx
jne 0x450418
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406470
xor eax, eax
push ebp
push 0x450a1c
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1c], 0
jne 0x45046d
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0044f344
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
add eax, 0x1c
call fcn.00405d8c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
mov eax, dword [ebp + 8]
push eax
lea edx, [ebp - 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
call fcn.0044fa4c
pop ecx
test al, al
je 0x4509df
xor ecx, ecx
mov edx, 0x450a38
mov eax, dword [ebp - 0xc]
call fcn.0044fd04
test al, al
je 0x4509d6
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp - 0x1c]
call fcn.0043f49c
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
mov edx, 0x450a48
call fcn.00406180
mov edx, dword [ebp - 0x18]
mov ecx, 0x450a5c
mov eax, dword [ebp - 0xc]
call fcn.0044ffd8
test al, al
jne 0x450501
push 0
lea eax, [ebp - 0x24]
call fcn.0043f49c
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov edx, 0x450a6c
call fcn.00406180
mov edx, dword [ebp - 0x20]
mov ecx, 0x450a5c
mov eax, dword [ebp - 0xc]
call fcn.0044ffd8
test al, al
je 0x4509d6
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
jne 0x450525
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
mov edx, dword [ebp - 4]
call fcn.00405d8c
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0
jne 0x450537
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0
je 0x4505ad
cmp byte [ebp - 0xd], 0
je 0x4509b3
push 0
mov ecx, 0x450a80
mov edx, 0x450a90
mov eax, dword [ebp - 0xc]
call fcn.0044ffd8
test al, al
je 0x4509b3
push 0
lea edx, [ebp - 0x28]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
call fcn.004274b4
mov edx, dword [ebp - 0x28]
mov ecx, 0x450a80
mov eax, dword [ebp - 0xc]
call fcn.0044ffd8
test al, al
je 0x4509b3
push 0
lea edx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
call fcn.004274b4
mov edx, dword [ebp - 0x2c]
mov ecx, 0x450aa8
mov eax, dword [ebp - 0xc]
call fcn.0044ffd8
test al, al
je 0x4509b3
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
cmp dword [0x5d07dc], 0
je 0x4505d3
lea eax, [ebp - 8]
mov edx, dword [0x5d07dc]
call fcn.00405d8c
jmp 0x4505e3
lea ecx, [ebp - 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor edx, edx
call fcn.0044d51c
push 0
lea eax, [ebp - 0x30]
mov ecx, dword [ebp - 8]
mov edx, 0x450ab8
call fcn.00406180
mov edx, dword [ebp - 0x30]
mov ecx, 0x450a5c
mov eax, dword [ebp - 0xc]
call fcn.0044ffd8
test al, al
je 0x4509b3
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
mov byte [ebp - 0xe], 0
lea eax, [ebp - 4]
call fcn.0044d4d0
mov esi, eax
test esi, esi
jle 0x45067a
mov edi, 1
push 0
lea eax, [ebp - 0x3c]
push eax
mov cl, 0x2c
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0041ca60
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x38]
xor edx, edx
call fcn.0044d51c
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 0x450ad0
call fcn.00406180
mov edx, dword [ebp - 0x34]
mov ecx, 0x450a5c
mov eax, dword [ebp - 0xc]
call fcn.0044ffd8
or al, byte [ebp - 0xe]
mov byte [ebp - 0xe], al
inc edi
dec esi
jne 0x450631
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
cmp byte [ebp - 0xe], 0
je 0x4509b3
mov eax, dword [ebp + 8]
cmp dword [eax + 0x34], 0
jne 0x4506a7
mov eax, dword [ebp + 8]
cmp dword [eax + 0x30], 0
je 0x45099d
push 0
mov eax, dword [ebp + 8]
add eax, 0x30
mov ecx, 0x450ae8
mov edx, 0x450afc
call fcn.0041aa78
cmp byte [0x5d07d0], 0
je 0x4506fc
push 0x450b10
lea edx, [ebp - 0x44]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x34]
call fcn.0040908c
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
call fcn.004274b4
push dword [ebp - 0x40]
push 0x450b28
lea eax, [ebp - 8]
mov edx, 3
call fcn.00406270
jmp 0x45072c
push 0x450b38
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x34]
mov cl, 0x3d
mov edx, 0x5d1008
call fcn.0044e4b4
push dword [ebp - 0x48]
push 0x450b28
lea eax, [ebp - 8]
mov edx, 3
call fcn.00406270
push 0
mov ecx, 0x450b54
mov edx, 0x450b64
mov eax, dword [ebp - 0xc]
call fcn.0044ffd8
test al, al
je 0x4509b3
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
push 0x450b78
lea ecx, [ebp - 0x50]
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0044d51c
push dword [ebp - 0x50]
push 0x450b8c
push 0x450b9c
lea ecx, [ebp - 0x54]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dl, 1
call fcn.0044d51c
push dword [ebp - 0x54]
push 0x450b8c
push 0x450bb0
push dword [ebp - 8]
push 0x450b8c
push 0x450bc8
lea eax, [ebp - 0x58]
call fcn.0044fb30
push dword [ebp - 0x58]
push 0x450b8c
push 0x450bdc
lea eax, [ebp - 0x5c]
call fcn.0044fc68
push dword [ebp - 0x5c]
push 0x450b8c
lea eax, [ebp - 0x4c]
mov edx, 0xf
call fcn.00406270
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0xc]
call fcn.0044f70c
mov ebx, eax
test bl, bl
je 0x450978
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x2c], 0
je 0x45094b
push 0x450bf8
lea eax, [ebp - 0x64]
mov edx, dword [0x5d1028]
mov ecx, 0
call fcn.00405fa4
push dword [ebp - 0x64]
push 0x450c44
push 0x450b8c
push 0x450b8c
push 0x450c54
push 0x450b8c
push 0x450b8c
push 0x450c90
lea eax, [ebp - 0x68]
mov edx, dword [0x5d1028]
mov ecx, 0
call fcn.00405fa4
push dword [ebp - 0x68]
push 0x450b8c
push 0x450ca0
push 0x450b8c
push 0x450cdc
push 0x450b8c
push 0x450b8c
mov eax, dword [ebp + 8]
push dword [eax + 0x30]
push 0x450b8c
lea eax, [ebp - 0x60]
mov edx, 0x12
call fcn.00406270
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0xc]
call fcn.0044f70c
mov ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
test bl, bl
je 0x450906
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
call fcn.00408258
mov esi, eax
test esi, esi
jl 0x450906
inc esi
xor edi, edi
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + edi*4]
call fcn.00406480
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x450902
push ebp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov eax, dword [eax + edi*4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov ecx, dword [eax + edi*4]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
mov edx, dword [eax + edi*4]
mov eax, dword [ebp - 0xc]
call fcn.00450084
pop ecx
test al, al
jne 0x450902
xor ebx, ebx
jmp 0x450906
inc edi
dec esi
jne 0x4508bb
test bl, bl
je 0x450978
push 0x450c90
lea eax, [ebp - 0x70]
mov edx, dword [0x5d1028]
mov ecx, 0
call fcn.00405fa4
push dword [ebp - 0x70]
push 0x450c90
push 0x450b8c
lea eax, [ebp - 0x6c]
mov edx, 4
call fcn.00406270
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0xc]
call fcn.0044f70c
mov ebx, eax
jmp 0x450978
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x30]
lea eax, [ebp - 0x74]
mov edx, 0x450b8c
call fcn.00406180
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 0xc]
call fcn.0044f70c
mov ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
push 0
mov ecx, 0x450a5c
mov edx, 0x450d08
mov eax, dword [ebp - 0xc]
call fcn.0044ffd8
and bl, al
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
jmp 0x4509b3
push 0
mov ecx, 0x450a5c
mov edx, 0x450d18
mov eax, dword [ebp - 0xc]
call fcn.0044ffd8
mov ebx, eax
push 0
mov ecx, 0x450d2c
mov edx, 0x450d3c
mov eax, dword [ebp - 0xc]
call fcn.0044ffd8
and bl, al
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
mov eax, dword [ebp - 0xc]
push eax
call sub.wsock32.dll_closesocket
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450a23
lea eax, [ebp - 0x74]
mov edx, 0xc
call fcn.00405d00
lea eax, [ebp - 0x44]
call fcn.00405cdc
lea eax, [ebp - 0x40]
mov edx, 0xc
call fcn.00405d00
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405d00
ret