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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45b15b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
mov eax, dword [0x473e34]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], eax
xor ebx, ebx
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x54]
push 0x8200
push eax
mov byte [ebp - 4], 4
call fcn.004186a0
add esp, 8
mov cl, byte [ebp - 0x11]
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x3c], cl
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dl, byte [ebp - 0x11]
mov dword [ebp - 0x48], ebx
mov byte [ebp - 0x4c], dl
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov eax, dword [esi + 0x1c]
mov byte [ebp - 4], 7
test byte [eax + 0x18], 0x80
jne 0x417782
lea ecx, [ebp - 0x18]
push 0x200
push ecx
call fcn.004186a0
add esp, 8
mov eax, dword [eax]
push ebx
push 4
push eax
mov byte [ebp - 4], 8
call fcn.004522b7
cmp eax, 7
lea ecx, [ebp - 0x18]
sete byte [ebp - 0x11]
mov byte [ebp - 4], 7
call fcn.0044b0ed
cmp byte [ebp - 0x11], bl
je 0x417782
mov edi, dword [ebp - 0x44]
mov esi, dword [ebp - 0x48]
cmp esi, edi
mov byte [ebp - 4], 6
je 0x41776a
push ebx
mov ecx, esi
call fcn.00418510
add esi, 4
cmp esi, edi
jne 0x417758
mov esi, dword [ebp - 0x48]
push esi
call fcn.0044ed74
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
push edx
jmp 0x417ee9
mov eax, 0x4768ec
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
lea eax, [esi + 4]
mov dword [ebp - 0x7c], ebx
push eax
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], 0xffffffff
mov dword [ebp - 0x68], ebx
call fcn.0044ae62
lea ecx, [esi + 8]
mov byte [ebp - 4], 9
push ecx
lea ecx, [ebp - 0xb4]
call fcn.0044ae62
lea edx, [esi + 0xc]
lea ecx, [ebp - 0xb0]
push edx
mov byte [ebp - 4], 0xa
call fcn.0044ae62
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
lea edx, [esi + 0x18]
mov dword [ebp - 0xa8], ecx
push edx
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0xac], eax
call fcn.0044ae62
mov eax, dword [esi + 0x1c]
lea ecx, [esi + 0x20]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xbc], 0x460134
mov edx, dword [ecx]
mov dword [ebp - 0x9c], edx
mov eax, dword [ecx + 4]
mov dword [ebp - 0x98], eax
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x94], ecx
push 0x476a10
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0xc
call fcn.0044b1ad
push 0x476a10
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0xd
call fcn.0044b1ad
lea edx, [ebp - 0x8c]
push ebx
lea eax, [ebp - 0x84]
push edx
push eax
push 4
push 1
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 0xe
call fcn.0041b840
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x11
call fcn.0044b0ed
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0x10
call fcn.0044b0ed
mov byte [ebp - 4], 0x12
call fcn.00419d00
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 0x10
push ecx
mov byte [ebp - 4], 0x14
call fcn.00418720
add esp, 4
push 0x4731d8
lea edx, [ebp - 0x18]
push eax
push edx
mov byte [ebp - 4], 0x15
call fcn.0044b382
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x16
push ecx
push eax
call fcn.00418800
add esp, 8
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x15
call fcn.0044b0ed
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0x14
call fcn.0044b0ed
mov ecx, dword [ebp - 0x48]
cmp ecx, ebx
je 0x417957
mov eax, dword [ebp - 0x44]
mov edx, eax
sub edx, ecx
test edx, 0xfffffffc
je 0x417957
xor edi, edi
cmp ecx, ebx
je 0x417957
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x417957
push ebx
lea ecx, [ecx + edi*4]
call fcn.0044b51d
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x48]
push ebx
lea ecx, [eax + edi*4]
call fcn.0044b51d
mov edx, dword [ebp - 0x34]
lea ecx, [ebp - 0x7c]
push ecx
push 1
push edx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x6c], eax
call fcn.004181f0
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
inc edi
jmp 0x417909
lea eax, [ebp - 0xb8]
lea ecx, [esi + 4]
push eax
mov dword [ebp - 4], 0x10
call fcn.0044b226
lea ecx, [ebp - 0xb4]
push ecx
lea ecx, [esi + 8]
call fcn.0044b226
lea edx, [ebp - 0xb0]
lea ecx, [esi + 0xc]
push edx
call fcn.0044b226
mov ecx, dword [ebp - 0xa8]
mov eax, dword [ebp - 0xac]
lea edx, [ebp - 0xa4]
mov dword [esi + 0x14], ecx
push edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], eax
call fcn.0044b226
mov eax, dword [ebp - 0xa0]
mov edx, dword [ebp - 0x9c]
lea ecx, [esi + 0x20]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x98]
mov dword [ecx], edx
mov edx, dword [ebp - 0x94]
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
mov eax, dword [0x476aac]
add eax, 8
lea ecx, [ebp - 0x20]
push eax
call fcn.0044b226
push 0x476a10
lea ecx, [ebp - 0x18]
call fcn.0044b1ad
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
push eax
push ecx
call fcn.00427aab
add esp, 8
lea ecx, [ebp - 0x18]
test eax, eax
setne byte [ebp - 0x11]
call fcn.0044b0ed
cmp byte [ebp - 0x11], bl
je 0x417a50
mov edx, dword [ebp - 0x20]
mov edi, dword [sym.imp.kernel32.dll_GetFileAttributesA]
push edx
call edi
cmp eax, 0xffffffff
je 0x417a56
push ebx
lea ecx, [ebp - 0x20]
call fcn.0044b51d
push ebx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x70], eax
call fcn.0044b51d
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x7c]
push eax
push 1
push ecx
lea ecx, [ebp - 0x3c]
call fcn.004181f0
jmp 0x417a56
mov edi, dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov eax, dword [0x476ab4]
lea ecx, [ebp - 0x1c]
add eax, 8
push eax
call fcn.0044b226
push 0x476a10
lea ecx, [ebp - 0x18]
call fcn.0044b1ad
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
push edx
push eax
call fcn.00427aab
add esp, 8
test eax, eax
je 0x417ae0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
push ecx
push edx
call fcn.00427aab
add esp, 8
lea ecx, [ebp - 0x18]
test eax, eax
setne byte [ebp - 0x11]
call fcn.0044b0ed
cmp byte [ebp - 0x11], bl
je 0x417ae0
mov eax, dword [ebp - 0x1c]
push eax
call edi
cmp eax, 0xffffffff
je 0x417ae0
push ebx
lea ecx, [ebp - 0x1c]
call fcn.0044b51d
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x70], eax
call fcn.0044b51d
mov edx, dword [ebp - 0x34]
lea ecx, [ebp - 0x7c]
push ecx
push 1
push edx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x6c], eax
call fcn.004181f0
mov eax, dword [0x476abc]
lea ecx, [ebp - 0x24]
add eax, 8
push eax
call fcn.0044b226
push 0x476a10
lea ecx, [ebp - 0x18]
call fcn.0044b1ad
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
push eax
push ecx
call fcn.00427aab
add esp, 8
test eax, eax
je 0x417b7e
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
push edx
push eax
call fcn.00427aab
add esp, 8
lea ecx, [ebp - 0x18]
test eax, eax
setne byte [ebp - 0x11]
call fcn.0044b0ed
cmp byte [ebp - 0x11], bl
je 0x417b7e
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
push ecx
push edx
call fcn.00427aab
add esp, 8
test eax, eax
je 0x417b7e
mov eax, dword [ebp - 0x24]
push eax
call edi
cmp eax, 0xffffffff
je 0x417b7e
push ebx
lea ecx, [ebp - 0x24]
call fcn.0044b51d
push ebx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x70], eax
call fcn.0044b51d
mov edx, dword [ebp - 0x34]
lea ecx, [ebp - 0x7c]
push ecx
push 1
push edx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x6c], eax
call fcn.004181f0
mov al, byte [ebp - 0x11]
mov dword [ebp - 0x60], ebx
mov byte [ebp - 0x64], al
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov edx, dword [esi]
lea eax, [ebp - 0x64]
lea ecx, [ebp - 0x2c]
push eax
push ecx
mov ecx, esi
mov byte [ebp - 4], 0x18
call dword [edx + 0x10]
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x19
call fcn.0044b226
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x18
call fcn.0044b0ed
xor edi, edi
mov eax, dword [ebp - 0x60]
cmp eax, ebx
je 0x417c10
mov edx, dword [ebp - 0x5c]
sub edx, eax
sar edx, 2
cmp edi, edx
jae 0x417c10
mov eax, dword [eax + edi*4]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x417c0d
mov eax, dword [ebp - 0x60]
push ebx
lea ecx, [eax + edi*4]
call fcn.0044b51d
mov ecx, dword [ebp - 0x60]
push ebx
mov dword [ebp - 0x70], eax
lea ecx, [ecx + edi*4]
call fcn.0044b51d
lea edx, [ebp - 0x7c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x34]
push edx
push 1
push eax
lea ecx, [ebp - 0x3c]
call fcn.004181f0
inc edi
jmp 0x417bbb
mov ecx, dword [esi + 0x1c]
lea edx, [ebp - 0x2c]
add ecx, 0x10
push ecx
push 0x4731d0
push edx
call fcn.0044b3f6
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0x1a
call fcn.0044b226
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x18
call fcn.0044b0ed
lea eax, [ebp - 0x90]
push 0x207
push eax
call fcn.004186a0
lea ecx, [ebp - 0x80]
push 0x208
push ecx
mov byte [ebp - 4], 0x1b
call fcn.004186a0
add esp, 0x10
mov edi, 1
push ebx
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0x1c
mov dword [ebp - 0xd4], ebx
mov dword [ebp - 0xd0], edi
call fcn.0044b51d
push ebx
lea ecx, [ebp - 0x50]
mov dword [ebp - 0xcc], eax
call fcn.0044b51d
push ebx
lea ecx, [ebp - 0x80]
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc4], ebx
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 0x104], ebx
call fcn.0044b51d
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x100], eax
call fcn.0044b51d
mov ecx, dword [ebp - 0x38]
lea edx, [ebp - 0xd4]
cmp ecx, ebx
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0xf8], ebx
mov dword [ebp - 0xf4], ebx
mov dword [ebp - 0xf0], ebx
mov dword [ebp - 0xec], 4
mov dword [ebp - 0xe8], ebx
mov dword [ebp - 0xe4], edi
mov dword [ebp - 0xe0], edx
jne 0x417d0d
mov dword [ebp - 0xdc], ebx
jmp 0x417d29
mov edx, dword [ebp - 0x34]
mov eax, 0x2aaaaaab
sub edx, ecx
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [ebp - 0xdc], edx
mov dword [ebp - 0xd8], ecx
mov ecx, dword [esi + 0x1c]
mov edi, 3
test byte [ecx + 0x18], 0x40
je 0x417d42
mov edi, 0xb
call fcn.0044ed7f
cmp eax, ebx
je 0x417d54
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x417d56
xor eax, eax
mov edx, dword [eax + 0x1c]
push ebx
lea ecx, [ebp - 0x104]
push edi
push ecx
push edx
push ebx
call dword [0x476a80]
cmp eax, ebx
je 0x417dc0
cmp eax, 1
jne 0x417d9f
lea eax, [ebp - 0x2c]
push 0x201
push eax
call fcn.004186a0
add esp, 8
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x1d
call fcn.0044b226
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x1c
call fcn.0044b0ed
jmp 0x417db5
mov ecx, dword [ebp - 0x54]
push eax
push ecx
lea edx, [ebp - 0x28]
push 0x4731a8
push edx
call fcn.0044949e
add esp, 0x10
mov eax, dword [ebp - 0x28]
push ebx
push ebx
push eax
call fcn.004522b7
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x1b
call fcn.0044b0ed
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0x18
call fcn.0044b0ed
mov eax, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x60]
cmp esi, eax
mov byte [ebp - 4], 0x10
mov edi, eax
je 0x417dfc
mov ecx, esi
call fcn.0044b0ed
add esi, 4
cmp esi, edi
jne 0x417deb
mov esi, dword [ebp - 0x60]
push esi
call fcn.0044ed74
add esp, 4
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov byte [ebp - 4], 0xc
call fcn.0041b950
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 7
call fcn.00416b20
mov eax, dword [ebp - 0x44]
mov esi, dword [ebp - 0x48]
cmp esi, eax
mov byte [ebp - 4], 6
mov edi, eax
je 0x417e4d
mov ecx, esi
call fcn.0044b0ed
add esi, 4
cmp esi, edi
jne 0x417e3c
mov esi, dword [ebp - 0x48]
push esi
call fcn.0044ed74
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
add esp, 4
cmp ecx, edx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov byte [ebp - 4], 5
mov eax, ecx
je 0x417e76
add eax, 0x18
cmp eax, edx
jne 0x417e6f
push ecx
call fcn.0044ed74
add esp, 4
jmp 0x417ef1
call fcn.0044ed74
add esp, 8
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov byte [ebp - 4], 4
call fcn.0044b0ed
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.0044b0ed
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.0044b0ed
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0044b0ed
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], bl
call fcn.0044b0ed
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.0044b0ed
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret