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

Disassembly:
push 0xffffffffffffffff
push 0x465fc4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x33c
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ebx, dword [esp + 0x35c]
push ebx
mov dword [esp + 0x358], 0
call fcn.004062f0
test eax, eax
jne 0x408439
lea eax, [ebx - 0x10]
mov dword [esp + 0x354], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408432
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x4086ea
call fcn.0046012c
mov ecx, dword [eax + 4]
call fcn.0044802a
mov ecx, dword [esp + 0x360]
push 0xffffffffffffffff
push 0
mov byte [esp + 0x35c], 1
call fcn.0043f916
lea ecx, [esp + 0x18]
call fcn.0043f879
lea eax, [esp + 0x18]
push eax
push ebx
mov byte [esp + 0x35c], 2
call fcn.00406120
mov al, byte [esi + 0x48]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 8
test al, 2
je 0x408516
push 0
lea ecx, [esp + 0x14c]
push ecx
lea edx, [esp + 0x250]
push edx
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.00425300
mov edi, dword [esi + 0x28]
add esp, 0x14
test edi, edi
je 0x408516
dec edi
js 0x408705
cmp edi, dword [esi + 0x28]
jge 0x408705
mov ecx, dword [esi + 0x24]
lea eax, [ecx + edi*4]
mov eax, dword [eax]
push eax
lea edx, [esp + 0x14c]
push edx
lea eax, [esp + 0x250]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x54]
push edx
call fcn.0042573d
add esp, 0x14
lea eax, [esp + 0x44]
push eax
call ebp
cmp eax, 0xffffffff
je 0x408512
test al, 0x10
jne 0x408512
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x48]
push edx
call fcn.00406120
add esp, 8
test edi, edi
jne 0x4084b5
test byte [esi + 0x48], 4
je 0x4085a8
push 0
lea eax, [esp + 0x14c]
push eax
lea ecx, [esp + 0x250]
push ecx
lea edx, [esp + 0x20]
push edx
push ebx
call fcn.00425300
mov edi, dword [esi + 0x3c]
add esp, 0x14
test edi, edi
je 0x4085a8
dec edi
js 0x408705
cmp edi, dword [esi + 0x3c]
jge 0x408705
mov eax, dword [esi + 0x38]
lea eax, [eax + edi*4]
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x14c]
push ecx
lea edx, [esp + 0x250]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.0042573d
add esp, 0x14
lea edx, [esp + 0x44]
push edx
call ebp
cmp eax, 0xffffffff
je 0x4085a4
test al, 0x10
jne 0x4085a4
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.00406120
add esp, 8
test edi, edi
jne 0x408547
lea ecx, [esp + 0x2c]
call fcn.004481f7
push 0
push 0x4000
push ebx
lea ecx, [esp + 0x38]
mov byte [esp + 0x360], 3
call fcn.0044825f
test eax, eax
je 0x40864d
call fcn.00441a77
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esi]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x30]
push edx
mov ecx, esi
mov byte [esp + 0x35c], 4
call dword [eax + 0x18]
test eax, eax
je 0x408627
mov edi, edi
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.00406120
mov edx, dword [esi]
add esp, 8
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call dword [edx + 0x18]
test eax, eax
jne 0x408600
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x354], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40864d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x364]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ecx
lea edi, [ebx - 0x10]
mov dword [esp + 0x4c], esp
mov ebp, esp
push edi
call fcn.004019b0
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [ebp], eax
call fcn.00406de0
mov ecx, dword [esp + 0x360]
lea edx, [esp + 0x18]
push edx
call fcn.0043fb5f
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x354], 2
call fcn.00448624
lea ecx, [esp + 0x18]
mov byte [esp + 0x354], 1
call fcn.0043f8f6
mov byte [esp + 0x354], 0
call fcn.0046012c
mov ecx, dword [eax + 4]
call fcn.0044803f
mov dword [esp + 0x354], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4086e8
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov eax, esi
mov ecx, dword [esp + 0x34c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x348
ret 0xc
call fcn.0043b75f
int3