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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44dd97
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x48d06c]
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 esi, ecx
test esi, esi
je 0x41b862
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41b862
push 0x20a
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00424870
push 0x104
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.00438b2e
add esp, 0x18
test eax, eax
jne 0x41b880
push esi
lea ecx, [ebp - 0x238]
call fcn.0040f810
mov dword [ebp - 4], 0
lea eax, [ebp - 0x238]
push eax
call fcn.0041c4a0
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x41b862
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41b858
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ba68
push edx
push ecx
call fcn.0042297a
add esp, 8
xor al, al
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.00422308
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
lea eax, [ebp - 0x220]
push eax
je 0x41b8b2
lea ecx, [ebp - 0x238]
call fcn.0040f810
mov dword [ebp - 4], 1
jmp 0x41b816
lea ecx, [ebp - 0x240]
call fcn.004092a0
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], 2
call fcn.0040e4a0
xor esi, esi
or edi, 0xffffffff
push dword [esi + 0x482758]
lea ecx, [ebp - 0x23c]
call fcn.004092a0
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 3
call fcn.0040e4a0
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x41b92e
mov ecx, dword [ebp - 0x240]
cmp dword [ecx - 0xc], 0
jl 0x41b92e
push eax
push ecx
call fcn.00423c86
add esp, 8
test eax, eax
je 0x41b928
sub eax, dword [ebp - 0x240]
sar eax, 1
test eax, eax
jg 0x41b9cd
mov eax, dword [ebp - 0x23c]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 2
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41b949
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, 0x18
jb 0x41b8d4
xor eax, eax
mov dword [ebp - 0x228], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b977
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.00407590
mov byte [ebp - 4], 4
lea eax, [ebp - 0x238]
mov esi, dword [0x48f3fc]
push eax
mov ebx, dword [esi + 4]
push ebx
push esi
call fcn.00418550
mov edx, eax
mov ecx, 0x7fffffe
mov eax, dword [0x48f400]
sub ecx, eax
cmp ecx, 1
jb 0x41ba6d
jmp 0x41b9f2
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp - 0x23c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41b9ee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov bl, 1
jmp 0x41ba3f
inc eax
mov byte [ebp - 4], 2
mov dword [0x48f400], eax
mov dword [esi + 4], edx
mov dword [ebx], edx
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x41ba3d
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41ba33
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ba68
push edx
push ecx
call fcn.0042297a
add esp, 8
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x240]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x41ba61
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
jmp 0x41b864
call fcn.004309e5
push 0x4853b0
call fcn.00421671
int3