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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x42b044]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x430], 0
mov ax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041d850
add esp, 8
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0
je 0x41b988
mov eax, dword [ebp - 0x430]
jmp 0x41bc02
mov word [ebp - 0x418], 0
push 0x206
push 0
lea edx, [ebp - 0x416]
push edx
call fcn.004012f0
add esp, 0xc
mov word [ebp - 0x210], 0
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.004012f0
add esp, 0xc
lea ecx, [ebp - 0x418]
push ecx
call fcn.0041aca0
add esp, 4
push 0x4295ec
push 0x104
lea edx, [ebp - 0x418]
push edx
call fcn.004013e0
add esp, 0xc
mov byte [ebp - 0x42c], 0
xor eax, eax
mov dword [ebp - 0x42b], eax
mov dword [ebp - 0x427], eax
mov dword [ebp - 0x423], eax
mov dword [ebp - 0x41f], eax
mov word [ebp - 0x41b], ax
mov byte [ebp - 0x419], al
mov dword [ebp - 4], 0
mov dword [ebp - 0x434], 0
jmp 0x41ba3e
mov ecx, dword [ebp - 0x434]
add ecx, 1
mov dword [ebp - 0x434], ecx
cmp dword [ebp - 0x434], 5
jge 0x41bb0f
mov edx, dword [ebp - 0x434]
imul edx, edx, 0x118
movzx eax, word [edx + 0x42d788]
test eax, eax
jne 0x41ba64
jmp 0x41ba2f
lea ecx, [ebp - 0x418]
push ecx
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.004017c5
add esp, 0xc
mov eax, dword [ebp - 0x434]
imul eax, eax, 0x118
add eax, 0x42d788
push eax
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call fcn.004013e0
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x42c]
push eax
call fcn.00419d70
add esp, 8
test eax, eax
je 0x41bb01
push 0x14
mov ecx, dword [ebp - 0x434]
imul ecx, ecx, 0x118
add ecx, 0x42d88c
push ecx
lea edx, [ebp - 0x42c]
push edx
call fcn.004023b0
add esp, 0xc
test eax, eax
jne 0x41bb01
mov eax, dword [ebp - 0x434]
imul eax, eax, 0x118
mov word [eax + 0x42d788], 0
jmp 0x41ba2f
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x41ba2f
mov dword [ebp - 0x438], 0
jmp 0x41bb2a
mov edx, dword [ebp - 0x438]
add edx, 1
mov dword [ebp - 0x438], edx
cmp dword [ebp - 0x438], 5
jge 0x41bb4e
mov eax, dword [ebp - 0x438]
imul eax, eax, 0x118
movzx ecx, word [eax + 0x42d788]
test ecx, ecx
jne 0x41bb4c
jmp 0x41bb1b
jmp 0x41bb1b
mov dword [ebp - 0x43c], 0
jmp 0x41bb69
mov edx, dword [ebp - 0x43c]
add edx, 1
mov dword [ebp - 0x43c], edx
cmp dword [ebp - 0x43c], 5
jge 0x41bbc7
mov eax, dword [ebp - 0x43c]
imul eax, eax, 0x118
movzx ecx, word [eax + 0x42d788]
test ecx, ecx
jne 0x41bb8b
jmp 0x41bb5a
mov edx, dword [ebp - 0x43c]
imul edx, edx, 0x118
mov eax, dword [edx + 0x42d888]
mov dword [0x42d77c], eax
mov cx, word [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x43c]
imul eax, eax, 0x118
add eax, 0x42d788
push eax
call fcn.0041d5d0
add esp, 0xc
jmp 0x41bb5a
push 0x42e3c8
push 0x104
lea ecx, [ebp - 0x418]
push ecx
call fcn.004013e0
add esp, 0xc
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41bbfc
mov dword [ebp - 0x430], 2
mov eax, dword [ebp - 0x430]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004012de
mov esp, ebp
pop ebp
ret