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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x4ed310]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, edx
mov ebx, dword [edi]
mov esi, ecx
mov dword [ebp - 0x1d8], esi
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x204], edi
test ebx, ebx
jne 0x41ddb7
mov ebx, edi
cmp byte [ebp + 0xc], 0
push 0
je 0x41ddde
mov ecx, dword [edi + 0xe8]
mov edx, dword [edi + 0xd8]
call fcn.0041d210
mov ecx, dword [ebx + 0xe8]
mov edx, dword [ebx + 0xd8]
jmp 0x41ddfb
mov ecx, dword [edi + 0xe0]
mov edx, dword [edi + 0xd0]
call fcn.0041d210
mov ecx, dword [ebx + 0xe0]
mov edx, dword [ebx + 0xd0]
push 1
call fcn.0041d210
mov eax, dword [edi + 4]
mov dword [ebp - 0x1fc], 0x44
mov dword [ebp - 0x1dc], eax
cmp eax, dword [edi + 8]
je 0x41e630
mov ecx, dword [ebp - 0x20c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
test al, al
jne 0x41e67d
mov ecx, dword [ebp - 0x1dc]
mov ecx, dword [ecx]
test byte [ecx + 0x50], 1
je 0x41de6f
mov edx, dword [ebp - 0x1d8]
mov eax, dword [edx + 0x10]
add eax, 4
cmp byte [eax], 0
je 0x41de56
or al, 0xff
jmp 0x41de63
cmp dword [eax + 4], 3
sete al
dec al
and al, 9
dec al
movzx eax, al
cmp dword [ebp + 0x10], eax
jg 0x41e612
cmp dword [ecx + 0x5c], 0
ja 0x41de7e
cmp dword [ecx + 0x58], 0xfffff800
jbe 0x41de91
mov edx, dword [ebp - 0x1d8]
mov eax, dword [edx + 0x10]
cmp dword [eax + 8], 2
jne 0x41e612
cmp byte [ebp + 0xc], 0
je 0x41debd
mov edx, dword [ecx + 0xe8]
mov eax, dword [ecx + 0xec]
mov dword [ebp - 0x1e8], edx
mov edx, dword [ecx + 0xd8]
mov dword [ebp - 0x1e4], eax
mov eax, dword [ecx + 0xdc]
jmp 0x41dee1
mov edx, dword [ecx + 0xe0]
mov eax, dword [ecx + 0xe4]
mov dword [ebp - 0x1e8], edx
mov edx, dword [ecx + 0xd0]
mov dword [ebp - 0x1e4], eax
mov eax, dword [ecx + 0xd4]
mov dword [ebp - 0x1f4], eax
mov dword [ebp - 0x1f8], edx
lea ecx, [ecx]
cmp dword [ebp - 0x1e4], 0
ja 0x41df07
mov ebx, dword [ebp - 0x1e8]
cmp ebx, 0xfffff800
jbe 0x41df0c
mov ebx, 0xfffff800
mov ecx, dword [ebp - 0x1dc]
xor eax, eax
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x100], eax
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xe8], eax
mov word [ebp - 0xe4], ax
mov eax, dword [ecx]
mov dl, byte [eax + 0x50]
and dl, 1
cmp byte [ebp + 0xc], 0
mov dword [ebp - 0x200], ebx
mov byte [ebp - 0x208], dl
je 0x41dfb3
add eax, 0x60
cmp dword [eax + 0x14], 8
jb 0x41df70
mov eax, dword [eax]
mov edx, dword [ebp - 0x208]
mov edi, dword [ebp - 0x1d8]
push edx
push eax
mov eax, dword [edi + 0x10]
add eax, 0x1010
push eax
lea esi, [ebp - 0xe0]
call fcn.004138e0
add al, al
mov byte [ebp - 0x1ec], al
mov ecx, dword [ebp - 0x1ec]
push ecx
mov edx, esi
mov esi, dword [ebp - 0x1dc]
mov ecx, dword [esi]
push edi
call fcn.0041c000
jmp 0x41dffd
cmp dword [eax + 0x74], 8
jb 0x41dfbe
mov ecx, dword [eax + 0x60]
jmp 0x41dfc1
lea ecx, [eax + 0x60]
mov esi, dword [ebp - 0x1d8]
mov eax, dword [esi + 0x10]
add eax, 4
lea edi, [ebp - 0xe0]
call fcn.00408ac0
mov edx, edi
mov byte [ebp - 0x1ec], al
push edx
mov cl, al
mov eax, dword [ebp - 0x1dc]
mov edx, dword [eax]
push esi
call fcn.0041c380
mov esi, dword [ebp - 0x1dc]
mov edi, dword [ebp - 0x1d8]
mov dl, byte [ebp - 0x1ec]
add dl, 0x21
movzx ecx, dl
and ecx, 0x80000001
mov byte [ebp - 0x1d1], 0
mov byte [ebp - 0x1d2], dl
jns 0x41e023
dec ecx
or ecx, 0xfffffffe
inc ecx
cmp ecx, 1
jne 0x41e036
inc dl
mov byte [ebp - 0x1d1], cl
mov byte [ebp - 0x1d2], dl
mov ecx, dword [ebp - 0x1f8]
mov eax, ecx
shr eax, 8
and eax, 0xff
mov byte [ebp - 0x101], al
mov byte [ebp - 0xfc], al
mov eax, ecx
shr eax, 0x10
and eax, 0xff
mov byte [ebp - 0x100], al
mov byte [ebp - 0xfd], al
mov eax, ecx
shr eax, 0x18
mov byte [ebp - 0xff], al
mov byte [ebp - 0xfe], al
mov eax, ebx
shr eax, 8
and eax, 0xff
mov byte [ebp - 0xf9], al
mov byte [ebp - 0xf4], al
mov eax, ebx
shr eax, 0x10
and eax, 0xff
mov byte [ebp - 0xf8], al
mov byte [ebp - 0xf5], al
mov eax, ebx
shr eax, 0x18
mov byte [ebp - 0x104], dl
mov byte [ebp - 0x103], 0
mov byte [ebp - 0x102], cl
mov byte [ebp - 0xfb], cl
mov byte [ebp - 0xfa], bl
mov byte [ebp - 0xf3], bl
mov byte [ebp - 0xf7], al
mov byte [ebp - 0xf6], al
mov eax, dword [esi]
mov cl, byte [eax + 0x50]
test cl, 2
je 0x41e152
mov eax, dword [eax + 0x114]
test eax, eax
je 0x41e693
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0xf2], ecx
mov cx, word [eax + 0x14]
mov word [ebp - 0xee], cx
movzx ecx, byte [eax + 0x16]
mov byte [ebp - 0xec], cl
movzx ecx, byte [eax]
mov byte [ebp - 0xeb], cl
movzx ecx, byte [eax + 1]
mov byte [ebp - 0xea], cl
movzx ecx, byte [eax + 2]
mov byte [ebp - 0xe9], cl
movzx eax, word [eax + 4]
mov byte [ebp - 0xe8], al
mov byte [ebp - 0xe5], al
shr eax, 8
mov byte [ebp - 0xe7], al
mov byte [ebp - 0xe6], al
jmp 0x41e4d4
cmp byte [edi + 0x15], 0
je 0x41e375
test cl, 1
je 0x41e1d3
cmp dword [eax + 0x90], 8
jb 0x41e16f
mov edx, dword [eax + 0x7c]
jmp 0x41e172
lea edx, [eax + 0x7c]
xor eax, eax
mov word [ebp - 0x120], ax
mov eax, edx
mov dword [ebp - 0x10c], 7
mov dword [ebp - 0x110], 0
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41e194
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x120]
call fcn.00401bf0
lea ecx, [ebp - 0x278]
push ecx
lea edx, [ebp - 0x230]
push edx
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x120]
push ecx
call fcn.00404340
jmp 0x41e243
cmp dword [eax + 0x90], 8
jb 0x41e1e1
mov edx, dword [eax + 0x7c]
jmp 0x41e1e4
lea edx, [eax + 0x7c]
xor eax, eax
mov word [ebp - 0x120], ax
mov eax, edx
mov dword [ebp - 0x10c], 7
mov dword [ebp - 0x110], 0
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41e206
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x120]
call fcn.00401bf0
lea ecx, [ebp - 0x278]
push ecx
lea edx, [ebp - 0x230]
push edx
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x120]
push ecx
call fcn.004028d0
add esp, 0x10
cmp dword [ebp - 0x10c], 8
mov bl, al
jb 0x41e260
mov edx, dword [ebp - 0x120]
push edx
call fcn.0049855c
add esp, 4
test bl, bl
je 0x41e327
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x230]
mov edx, dword [ebp - 0x21c]
shl eax, 6
or eax, dword [ebp - 0x22c]
sar ecx, 1
add edx, 0x30
shl eax, 5
or eax, ecx
mov ecx, dword [ebp - 0x220]
shl edx, 9
inc ecx
shl ecx, 5
or edx, ecx
or edx, dword [ebp - 0x224]
movzx eax, ax
movzx ecx, dx
mov edx, ecx
shr edx, 9
and dl, 0x7f
add dl, 0x50
mov byte [ebp - 0xf2], dl
mov edx, ecx
shr edx, 5
and dl, 0xf
and cl, 0x1f
mov byte [ebp - 0xf1], dl
mov byte [ebp - 0xf0], cl
mov ecx, eax
mov edx, eax
and al, 0x1f
add al, al
shr ecx, 0xb
shr edx, 5
mov byte [ebp - 0xed], al
lea eax, [ebp - 0x1d0]
and cl, 0x1f
and dl, 0x3f
push eax
mov byte [ebp - 0xef], cl
mov byte [ebp - 0xee], dl
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov ecx, dword [ebp - 0x1d0]
mov eax, 0x77777777
imul ecx
sub edx, ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov byte [ebp - 0xec], cl
jmp 0x41e3ec
mov eax, dword [ebp - 0x1d8]
movzx edx, byte [eax + 0x3c]
movzx ecx, byte [eax + 0x38]
mov byte [ebp - 0xf2], dl
movzx edx, byte [eax + 0x34]
inc cl
cmp dword [eax + 0x28], 0x3b
mov byte [ebp - 0xf1], cl
movzx ecx, byte [eax + 0x30]
mov byte [ebp - 0xf0], dl
movzx edx, byte [eax + 0x2c]
mov byte [ebp - 0xef], cl
mov byte [ebp - 0xee], dl
jle 0x41e370
mov byte [ebp - 0xed], 0x3b
jmp 0x41e3c0
mov al, byte [eax + 0x28]
jmp 0x41e3ba
movzx edx, byte [edi + 0x38]
movzx ecx, byte [edi + 0x3c]
mov al, byte [edi + 0x34]
inc dl
cmp dword [edi + 0x28], 0x3b
mov byte [ebp - 0xf2], cl
movzx ecx, byte [edi + 0x30]
mov byte [ebp - 0xf1], dl
movzx edx, byte [edi + 0x2c]
mov byte [ebp - 0xf0], al
mov byte [ebp - 0xef], cl
mov byte [ebp - 0xee], dl
jle 0x41e3b7
mov byte [ebp - 0xed], 0x3b
jmp 0x41e3c0
mov al, byte [edi + 0x28]
mov byte [ebp - 0xed], al
lea ecx, [ebp - 0x1d0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov ecx, dword [ebp - 0x1d0]
mov eax, 0x77777777
imul ecx
sub edx, ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ebp - 0xec], al
mov eax, dword [ebp - 0x1dc]
mov byte [ebp - 0xeb], 0
mov ecx, dword [eax]
test byte [ecx + 0x50], 1
je 0x41e408
mov byte [ebp - 0xeb], 2
mov eax, dword [eax]
mov edi, 8
cmp dword [eax + 0x90], edi
jb 0x41e41c
mov edx, dword [eax + 0x7c]
jmp 0x41e41f
lea edx, [eax + 0x7c]
xor eax, eax
mov word [ebp - 0x120], ax
mov eax, edx
mov dword [ebp - 0x10c], 7
mov dword [ebp - 0x110], 0
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41e441
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x120]
call fcn.00401bf0
mov eax, dword [ebp - 0x120]
cmp dword [ebp - 0x10c], edi
jae 0x41e471
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41e481
xor bl, bl
jmp 0x41e487
shr eax, 1
and al, 1
mov bl, al
cmp dword [ebp - 0x10c], edi
jb 0x41e49e
mov ecx, dword [ebp - 0x120]
push ecx
call fcn.0049855c
add esp, 4
test bl, bl
je 0x41e4a9
or byte [ebp - 0xeb], 1
mov ebx, dword [ebp - 0x200]
mov dl, byte [ebp - 0x1d2]
mov esi, dword [ebp - 0x1dc]
mov edi, dword [ebp - 0x1d8]
mov dword [ebp - 0xea], 0x10000
mov word [ebp - 0xe6], 0x100
sub dword [ebp - 0x1e8], ebx
mov eax, dword [esi]
sbb dword [ebp - 0x1e4], 0
cmp dword [eax + 0x5c], 0
ja 0x41e4f2
cmp dword [eax + 0x58], 0xfffff800
jbe 0x41e50b
cmp dword [ebp - 0x1e4], 0
ja 0x41e504
cmp dword [ebp - 0x1e8], 0
jbe 0x41e50b
or byte [ebp - 0xeb], 0x80
mov al, byte [ebp - 0x1ec]
mov ecx, dword [ebp - 0x1fc]
mov byte [ebp - 0xe4], al
movzx eax, dl
add ecx, eax
cmp ecx, 0x800
jbe 0x41e55b
mov esi, dword [edi + 8]
mov dword [ebp - 0x1fc], eax
mov eax, dword [esi + 0x24]
sub eax, dword [esi + 0x30]
mov byte [ebp - 0x1d2], 0
je 0x41e56d
mov edi, eax
mov edx, dword [esi]
mov edx, dword [edx + 4]
push 1
lea eax, [ebp - 0x1d2]
push eax
mov ecx, esi
call edx
dec edi
jne 0x41e544
jmp 0x41e56d
lea eax, [ecx - 0x800]
neg eax
sbb eax, eax
and eax, ecx
mov dword [ebp - 0x1fc], eax
mov esi, dword [ebp - 0x1d8]
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push 0x21
lea edx, [ebp - 0x104]
push edx
call eax
movzx eax, byte [ebp - 0x1ec]
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push eax
lea eax, [ebp - 0xe0]
push eax
call edx
cmp byte [ebp - 0x1d1], 0
je 0x41e5c2
mov ecx, dword [esi + 8]
mov byte [ebp - 0x1d1], 0
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push 1
lea edx, [ebp - 0x1d1]
push edx
call eax
test ebx, ebx
jne 0x41e5ca
xor eax, eax
jmp 0x41e5e3
mov eax, 1
cmp ebx, 0x800
jbe 0x41e5e3
lea eax, [ebx - 0x801]
shr eax, 0xb
add eax, 2
add dword [ebp - 0x1f8], eax
adc dword [ebp - 0x1f4], 0
cmp dword [ebp - 0x1e4], 0
ja 0x41df07
jb 0x41e60c
cmp dword [ebp - 0x1e8], 0
ja 0x41def0
mov edi, dword [ebp - 0x204]
mov eax, dword [ebp - 0x1dc]
add eax, 4
mov dword [ebp - 0x1dc], eax
cmp eax, dword [edi + 8]
jne 0x41de1e
mov esi, dword [ebp - 0x1d8]
mov esi, dword [esi + 8]
cmp dword [esi + 0x30], 0
je 0x41e665
mov eax, dword [esi + 0x24]
sub eax, dword [esi + 0x30]
mov byte [ebp - 0x1d1], 0
je 0x41e665
mov edi, eax
lea ebx, [ebx]
mov eax, dword [esi]
mov edx, dword [eax + 4]
push 1
lea ecx, [ebp - 0x1d1]
push ecx
mov ecx, esi
call edx
dec edi
jne 0x41e650
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00499155
mov esp, ebp
pop ebp
ret 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00499155
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [esi]
add esi, 0x60
cmp dword [esi + 0x14], 8
jb 0x41e6a0
mov esi, dword [esi]
mov eax, dword [edi + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push esi
push str.__Error:_The_file___s__does_not_contain_imported_session_data_like_advertised.
push eax
call edx
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00499155
mov esp, ebp
pop ebp
ret 0xc