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

Disassembly:
push 0x150
mov eax, 0x43721c
call fcn.00425136
mov eax, dword [ebp + 8]
and dword [ebp - 0xa8], 0
mov edi, edx
mov ebx, ecx
push edi
lea esi, [ebp - 0x50]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xb4], edi
call fcn.0040728a
and dword [ebp - 4], 0
push 0x43d0c8
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.00408ac5
mov ecx, esi
push ecx
push eax
lea eax, [ebp - 0xdc]
push eax
mov byte [ebp - 4], 1
call fcn.00408b0b
add esp, 0x18
cmp dword [eax + 0x18], 8
jb 0x408309
mov eax, dword [eax + 4]
jmp 0x40830c
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0
cmp eax, 0xffffffff
push 1
lea esi, [ebp - 0xdc]
sete bl
call fcn.00405329
push 0
push 1
lea esi, [ebp - 0x6c]
mov byte [ebp - 4], 0
call fcn.00405329
test bl, bl
je 0x408354
mov esi, dword [ebp - 0xb0]
lea eax, [ebp - 0x50]
push eax
call fcn.0040728a
push 0
push 1
jmp 0x408656
lea eax, [ebp - 0xac]
push eax
mov eax, edi
mov dword [ebp - 0xac], 0x2e
call fcn.0040893e
mov dword [ebp - 0xac], eax
cmp eax, 0xffffffff
jne 0x40837b
mov eax, edi
jmp 0x4083d5
lea eax, [ebp - 0xc0]
mov ecx, edi
call fcn.00405ec8
mov edi, dword [ebp - 0xac]
lea ebx, [ebp - 0xe4]
call fcn.004088ab
mov ecx, dword [ebp - 0xb4]
mov esi, eax
lea eax, [ebp - 0xec]
call fcn.00405ec8
push dword [esi + 4]
lea ebx, [ebp - 0xdc]
push dword [esi]
push dword [eax + 4]
push dword [eax]
call fcn.004087b4
mov edi, dword [ebp - 0xb4]
mov byte [ebp - 4], 2
mov dword [ebp - 0xa8], 2
push eax
lea esi, [ebp - 0x88]
call fcn.0040728a
push 4
pop ebx
mov dword [ebp - 4], ebx
test byte [ebp - 0xa8], 2
je 0x408406
and dword [ebp - 0xa8], 0xfffffffd
push 0
push 1
lea esi, [ebp - 0xdc]
call fcn.00405329
cmp dword [ebp - 0xac], 0xffffffff
jne 0x40843b
and dword [ebp - 0xc8], 0
xor eax, eax
mov dword [ebp - 0xc4], 7
mov word [ebp - 0xd8], ax
mov byte [ebp - 4], 5
or dword [ebp - 0xa8], ebx
lea eax, [ebp - 0xdc]
jmp 0x4084a8
cmp dword [edi + 0x18], 8
jb 0x408446
mov eax, dword [edi + 4]
jmp 0x408449
lea eax, [edi + 4]
mov ecx, dword [edi + 0x14]
mov esi, edi
lea ebx, [eax + ecx*2]
lea edi, [ebp - 0xc0]
call fcn.00405f14
mov ecx, dword [ebp - 0xb4]
lea eax, [ebp - 0xec]
call fcn.00405ec8
mov edi, dword [ebp - 0xac]
lea ebx, [ebp - 0xe4]
call fcn.004088ab
push dword [ebp - 0xbc]
lea ebx, [ebp - 0x140]
push dword [ebp - 0xc0]
push dword [eax + 4]
push dword [eax]
call fcn.004087b4
mov dword [ebp - 4], 6
or dword [ebp - 0xa8], 8
push eax
lea esi, [ebp - 0xa4]
call fcn.0040728a
mov dword [ebp - 4], 7
test byte [ebp - 0xa8], 8
je 0x4084da
and dword [ebp - 0xa8], 0xfffffff7
push 0
push 1
lea esi, [ebp - 0x140]
call fcn.00405329
mov byte [ebp - 4], 9
test byte [ebp - 0xa8], 4
je 0x4084f6
push 0
push 1
lea esi, [ebp - 0xdc]
call fcn.00405329
mov dword [ebp - 0xa8], 1
push 7
xor eax, eax
pop ecx
mov word [ebp - 0x34], ax
lea edi, [ebp - 0x32]
rep stosd dword es:[edi], eax
push 0xa
stosw word es:[edi], ax
push 0x10
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0xa8]
call fcn.00423eb7
push 0x43d0cc
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00408ac5
lea ecx, [ebp - 0x34]
push ecx
push eax
lea eax, [ebp - 0x15c]
push eax
mov byte [ebp - 4], 0xa
call fcn.00408ac5
lea ecx, [ebp - 0xa4]
push ecx
push eax
lea eax, [ebp - 0x124]
push eax
mov byte [ebp - 4], 0xb
call fcn.00408b0b
add esp, 0x34
push 0xffffffffffffffff
lea ecx, [ebp - 0x50]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 0xc
call fcn.004053ef
xor edi, edi
push edi
inc ebx
push ebx
lea esi, [ebp - 0x124]
call fcn.00405329
push edi
push ebx
lea esi, [ebp - 0x15c]
call fcn.00405329
push edi
push ebx
lea esi, [ebp - 0x108]
mov byte [ebp - 4], 9
call fcn.00405329
push 0x43d0c8
push dword [ebp - 0xb8]
lea eax, [ebp - 0x108]
push eax
call fcn.00408ac5
lea ecx, [ebp - 0x50]
push ecx
push eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 4], 0xd
call fcn.00408b0b
add esp, 0x18
push edi
push ebx
lea esi, [ebp - 0x108]
mov byte [ebp - 4], 9
call fcn.00405329
cmp dword [ebp - 0x54], 8
mov eax, dword [ebp - 0x68]
jae 0x4085f3
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
lea esi, [ebp - 0x6c]
push ebx
cmp eax, 0xffffffff
je 0x408626
call fcn.00405329
inc dword [ebp - 0xa8]
cmp dword [ebp - 0xa8], 0x3e8
jl 0x408500
xor ebx, ebx
inc ebx
xor edi, edi
jmp 0x40862b
call fcn.00405329
mov esi, dword [ebp - 0xb0]
lea eax, [ebp - 0x50]
push eax
call fcn.0040728a
push edi
push ebx
lea esi, [ebp - 0xa4]
call fcn.00405329
push edi
push ebx
lea esi, [ebp - 0x88]
call fcn.00405329
push edi
push ebx
lea esi, [ebp - 0x50]
call fcn.00405329
mov eax, dword [ebp - 0xb0]
call fcn.004251b9
ret