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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x584966
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x5f0524]
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 dword [ebp - 0x278], ecx
mov dword [ebp - 4], 0
or esi, 0xffffffff
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
je 0x4db5bc
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x4db5bc
push 0x5bb850
lea ecx, [ebp - 0x268]
call fcn.00437a90
push 0x5bcacc
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 1
call fcn.00437a90
mov byte [ebp - 4], 2
call fcn.004f9bf8
mov ecx, eax
test ecx, ecx
jne 0x4daf17
push 0x80004005
call fcn.00426f70
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x27c], eax
mov byte [ebp - 4], 3
call fcn.004f9bf8
mov ecx, eax
test ecx, ecx
jne 0x4daf3e
push 0x80004005
call fcn.00426f70
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x280], edi
mov byte [ebp - 4], 4
call fcn.004f9bf8
mov ecx, eax
test ecx, ecx
jne 0x4daf65
push 0x80004005
call fcn.00426f70
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x274], eax
mov byte [ebp - 4], 5
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.00437b50
add eax, 0x10
add esp, 4
mov dword [ebp - 0x264], eax
mov byte [ebp - 4], 6
push dword [ebp - 0x268]
push ecx
lea ecx, [ebp - 0x264]
call fcn.004767b0
mov esi, dword [ebp - 0x264]
xor ebx, ebx
mov dword [ebp - 0x26c], 3
mov eax, dword [esi - 0xc]
cmp eax, 2
jl 0x4db094
test eax, eax
jns 0x4dafd1
push 0x80070057
call fcn.00426f70
movzx eax, word [esi]
push eax
call fcn.00529727
add esp, 4
test eax, eax
je 0x4db094
mov ecx, dword [esi - 0xc]
cmp ecx, 1
jge 0x4daff7
push 0x80070057
call fcn.00426f70
mov eax, dword [ebp - 0x284]
mov edx, dword [eax - 0xc]
cmp edx, 1
jne 0x4db094
test edx, edx
jns 0x4db017
push 0x80070057
call fcn.00426f70
movzx eax, word [eax]
movzx edx, word [esi + 2]
cmp ax, dx
jne 0x4db094
cmp ecx, 2
jne 0x4db03d
or ebx, 0xffffffff
mov eax, 3
or esi, ebx
mov dword [ebp - 0x26c], eax
jmp 0x4db1a2
jge 0x4db049
push 0x80070057
call fcn.00426f70
mov eax, dword [ebp - 0x268]
mov edx, dword [eax - 0xc]
cmp edx, 1
jne 0x4db189
test edx, edx
jns 0x4db069
push 0x80070057
call fcn.00426f70
movzx eax, word [eax]
movzx edx, word [esi + 4]
cmp ax, dx
jne 0x4db189
cmp ecx, 3
mov esi, 0xffffffff
mov eax, 3
cmove ebx, esi
mov dword [ebp - 0x26c], eax
jmp 0x4db1a2
mov ebx, dword [esi - 0xc]
cmp ebx, 1
jl 0x4db190
test ebx, ebx
jns 0x4db0ae
push 0x80070057
call fcn.00426f70
movzx eax, word [esi]
mov dword [ebp - 0x270], eax
mov eax, dword [ebp - 0x268]
mov edx, dword [eax - 0xc]
cmp edx, 1
jne 0x4db190
test edx, edx
jns 0x4db0d7
push 0x80070057
call fcn.00426f70
movzx ecx, word [eax]
cmp cx, word [ebp - 0x270]
jne 0x4db190
cmp ebx, 1
jne 0x4db0f9
or ebx, 0xffffffff
or esi, ebx
lea eax, [ebx + 4]
jmp 0x4db1a2
jge 0x4db105
push 0x80070057
call fcn.00426f70
cmp edx, 1
jne 0x4db190
test edx, edx
jns 0x4db11c
push 0x80070057
call fcn.00426f70
movzx ecx, word [eax]
movzx edx, word [esi + 2]
cmp cx, dx
jne 0x4db190
mov edx, 3
cmp ebx, edx
jle 0x4db189
test edx, edx
js 0x4dafc7
mov ebx, dword [esi - 0xc]
cmp edx, ebx
jg 0x4dafc7
movzx ecx, word [esi + edx*2]
mov dword [ebp - 0x270], ecx
mov ecx, dword [eax - 0xc]
cmp ecx, 1
jne 0x4db16a
test ecx, ecx
js 0x4dafc7
movzx ecx, word [eax]
cmp cx, word [ebp - 0x270]
je 0x4db176
inc edx
cmp edx, ebx
jl 0x4db131
xor ebx, ebx
jmp 0x4db4fd
lea ebx, [edx + 1]
mov dword [ebp - 0x26c], ebx
cmp ebx, 3
jle 0x4db189
cmp ebx, dword [esi - 0xc]
jne 0x4db197
xor ebx, ebx
jmp 0x4db4fd
mov eax, 3
jmp 0x4db19d
mov eax, dword [ebp - 0x26c]
or esi, 0xffffffff
xor ebx, ebx
push eax
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x264]
call fcn.00476700
push eax
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 7
call fcn.00476cc0
mov byte [ebp - 4], 6
mov eax, esi
mov edx, dword [ebp - 0x270]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4db1e6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x26c]
push ecx
lea ecx, [ebp - 0x264]
call fcn.004769e0
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x274]
call fcn.00476cc0
mov esi, dword [ebp - 0x278]
lea eax, [ebp - 0x27c]
push eax
mov ecx, esi
call fcn.00476cc0
cmp ebx, 0xffffffff
je 0x4db4db
nop word [eax + eax]
mov eax, dword [ebp - 0x268]
mov esi, dword [ebp - 0x264]
test eax, eax
jne 0x4db248
or ebx, 0xffffffff
jmp 0x4db3fe
cmp dword [esi - 0xc], 0
jge 0x4db256
or ebx, 0xffffffff
jmp 0x4db3fe
push eax
push esi
call fcn.0051c7a4
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4db26e
or ebx, 0xffffffff
jmp 0x4db3fe
sub ebx, esi
sar ebx, 1
jne 0x4db3f5
mov edi, dword [esi - 0xc]
mov ebx, 1
cmp edi, ebx
jge 0x4db28a
mov ebx, edi
test ebx, ebx
jle 0x4db2d6
sub edi, ebx
cmp dword [esi - 4], 1
jle 0x4db2a6
push dword [esi - 0xc]
lea ecx, [ebp - 0x264]
call fcn.00426b40
mov esi, dword [ebp - 0x264]
lea ecx, [edi*2 + 2]
push ecx
lea eax, [esi + ebx*2]
push eax
push ecx
push esi
call fcn.00476c40
add esp, 0x10
test edi, edi
js 0x4dafc7
cmp edi, dword [esi - 8]
jg 0x4dafc7
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
mov eax, dword [ebp - 0x268]
lea ecx, [ebp - 0x274]
push dword [eax - 0xc]
push eax
call fcn.0045a630
mov eax, dword [ebp - 0x268]
test eax, eax
jne 0x4db2fd
or ebx, 0xffffffff
jmp 0x4db408
cmp dword [esi - 0xc], 0
jge 0x4db30b
or ebx, 0xffffffff
jmp 0x4db408
push eax
push esi
call fcn.0051c7a4
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4db323
or ebx, 0xffffffff
jmp 0x4db408
sub ebx, esi
sar ebx, 1
cmp ebx, 0xffffffff
je 0x4db408
push ebx
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x264]
call fcn.00476700
push eax
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 9
call fcn.00476cc0
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x288]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4db377
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ebx
push ecx
lea ecx, [ebp - 0x264]
call fcn.004769e0
mov edi, dword [ebp - 0x280]
lea ecx, [ebp - 0x274]
push dword [edi - 0xc]
push edi
call fcn.0045a630
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x4db43c
cmp dword [ebp - 0x26c], 3
je 0x4db4e8
mov esi, dword [ebp - 0x278]
lea eax, [ebp - 0x274]
push eax
mov ecx, esi
call fcn.00476cc0
cmp ebx, 0xffffffff
je 0x4db4db
mov eax, dword [ebp - 0x268]
mov ecx, esi
push dword [eax - 0xc]
push eax
call fcn.0045a630
jmp 0x4db230
cmp ebx, 0xffffffff
jne 0x4db330
cmp dword [esi - 0xc], 0
jle 0x4db4a4
push dword [esi - 0xc]
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x264]
call fcn.00476700
push eax
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 8
call fcn.00476cc0
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x270]
jmp 0x4db35d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp ebx, 0xffffffff
je 0x4db4ae
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x28c]
push eax
call fcn.00476630
add esp, 0xc
mov ecx, dword [ebp - 0x278]
mov byte [ebp - 4], 0xa
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.0045a630
mov byte [ebp - 4], 6
mov eax, esi
mov edx, dword [ebp - 0x28c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4db230
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4db230
mov eax, dword [ebp - 0x278]
mov eax, dword [eax]
jmp 0x4db4fa
lea ecx, [ebp - 0x234]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4db4b7
mov esi, dword [ebp - 0x278]
lea eax, [ebp - 0x234]
sub ecx, edx
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0045a630
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4db4f2
mov esi, dword [ebp - 0x264]
xor ebx, ebx
jmp 0x4db4fd
mov eax, dword [esi]
mov esi, dword [ebp - 0x264]
mov ebx, dword [eax - 0xc]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 5
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4db51b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, esi
mov edx, dword [ebp - 0x274]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4db53c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4db557
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp - 0x27c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4db578
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x284]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4db599
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x268]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4db5be
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4db5be
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x4db5dd
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.0051a19b
mov esp, ebp
pop ebp
ret