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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451df0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
mov esi, dword [ebp + 0x1c]
push edi
mov ecx, esi
call fcn.004441d0
mov eax, dword [ebp + 0xc]
push 0x4963b4
lea ecx, [ebp - 0x20]
push eax
push ecx
call fcn.004445c0
mov edx, dword [0x4981ec]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
mov byte [ebp - 4], 1
call edi
cmp eax, 0xffffffff
je 0x42798e
test al, 0x10
je 0x42798e
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x20]
push ecx
push 5
push edx
call fcn.004131c0
add esp, 0xc
test eax, eax
je 0x42790e
mov dword [ebp - 0x30], 1
jmp 0x42798e
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x14]
push eax
call fcn.0043d420
mov esi, eax
cmp esi, ebx
jl 0x42796e
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
lea ecx, [ebp - 0x14]
mov eax, dword [edx - 8]
push eax
push esi
call 0x43ccd0
mov eax, dword [0x4981ec]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 2
mov edx, dword [ecx]
push edx
push 0x4963e8
push eax
call fcn.0043d910
mov ecx, dword [ebp - 0x24]
add esp, 0xc
push ecx
push esi
lea ecx, [ebp - 0x14]
call 0x43cd50
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00444260
mov edx, dword [ebp - 0x20]
push 0x4963f8
push edx
lea ecx, [ebp - 0x14]
call fcn.0043ce90
mov ecx, dword [ebp + 0x1c]
lea eax, [ebp - 0x14]
push eax
call fcn.004443f0
mov esi, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x20]
push ecx
call edi
cmp eax, 0xffffffff
je 0x4279d8
test al, 0x10
jne 0x4279d8
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x20]
push edx
push eax
call fcn.00412fb0
add esp, 8
test eax, eax
je 0x4279ba
mov dword [ebp - 0x30], 1
jmp 0x4279d8
mov ecx, dword [esi]
cmp dword [ecx - 8], ebx
je 0x4279cd
push 0x4963fc
mov ecx, esi
call fcn.00444760
lea edx, [ebp - 0x14]
mov ecx, esi
push edx
call fcn.004447c0
mov eax, dword [0x4981ec]
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 0xc]
push 0x496400
lea ecx, [ebp - 0x28]
push edi
push ecx
mov byte [ebp - 4], 3
call fcn.004445c0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.00419ad0
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 5
cmp eax, ebx
jne 0x427de8
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x28]
push edx
push 0x496414
push eax
lea ecx, [ebp - 0x1c]
call fcn.00419af0
test eax, eax
je 0x427e14
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x58], 0x455888
mov ecx, dword [0x4981ec]
mov dword [ebp - 0x18], ecx
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x1c]
push edx
mov byte [ebp - 4], 7
mov dword [ebp - 0x24], ebx
call fcn.00419ba0
test eax, eax
je 0x427d41
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x44], 0x455888
push ebx
lea eax, [ebp - 0x44]
push 9
push eax
lea ecx, [ebp - 0x18]
push ebx
push ecx
mov byte [ebp - 4], 8
call fcn.0042ce40
mov edx, dword [ebp - 0x40]
add esp, 0x14
cmp edx, ebx
jne 0x427abb
push 0x14
call fcn.00444a70
add esp, 4
mov esi, 5
mov dword [ebp - 0x40], eax
push esi
push eax
call 0x43dae0
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], esi
jmp 0x427b83
mov ecx, dword [ebp - 0x38]
mov esi, 5
cmp ecx, esi
jl 0x427afb
mov eax, dword [ebp - 0x3c]
cmp eax, esi
jge 0x427ae4
mov ecx, esi
lea edx, [edx + eax*4]
sub ecx, eax
push ecx
push edx
call 0x43dae0
mov dword [ebp - 0x3c], esi
jmp 0x427b83
jle 0x427af3
add eax, 0xfffffffb
add edx, 0x14
push eax
push edx
call fcn.0043db10
mov dword [ebp - 0x3c], esi
jmp 0x427b83
mov eax, dword [ebp - 0x34]
cmp eax, ebx
jne 0x427b26
mov eax, dword [ebp - 0x3c]
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x427b1a
mov eax, 4
jmp 0x427b26
cmp eax, 0x400
jle 0x427b26
mov eax, 0x400
add eax, ecx
cmp eax, esi
mov dword [ebp - 0x2c], eax
jg 0x427b32
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp - 0x2c]
lea ecx, [eax*4]
push ecx
call fcn.00444a70
mov ecx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x40]
mov ebx, eax
mov edx, 5
mov edi, ebx
add esp, 4
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x3c]
sub edx, eax
lea eax, [ebx + eax*4]
push edx
push eax
call 0x43dae0
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.00444ab0
mov edx, dword [ebp - 0x2c]
add esp, 4
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], 5
mov dword [ebp - 0x38], edx
xor ebx, ebx
mov eax, dword [ebp - 0x40]
lea ecx, [ebp + 8]
add eax, 4
push eax
call fcn.004440c0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 9
call fcn.0043da70
lea ecx, [ebp + 8]
call fcn.0043da00
mov ecx, dword [ebp + 8]
push 0x496418
push ecx
call fcn.0043049f
add esp, 8
test eax, eax
jne 0x427cd2
mov eax, dword [ebp - 0x40]
push 0x496440
mov esi, eax
lea ecx, [eax + 0x10]
call 0x43d300
push 0x496450
mov ecx, esi
mov edi, eax
call 0x43d300
test eax, eax
je 0x427c7c
cmp dword [ebp + 0x18], ebx
jne 0x427c2c
cmp edi, ebx
jne 0x427c2c
lea ecx, [ebp + 8]
mov dword [ebp - 0x24], 1
mov byte [ebp - 4], 8
call fcn.00444260
mov dword [ebp - 0x44], 0x45587c
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], 0xa
cmp eax, ebx
je 0x427d26
mov edx, dword [ebp - 0x3c]
push edx
push eax
call fcn.0043db10
mov eax, dword [ebp - 0x40]
push eax
jmp 0x427d1e
cmp dword [ebp + 0x14], ebx
je 0x427c5f
lea ecx, [ebp + 8]
mov dword [ebp - 0x24], 1
mov byte [ebp - 4], 8
call fcn.00444260
mov dword [ebp - 0x44], 0x45587c
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], 0xb
cmp eax, ebx
je 0x427d26
jmp 0x427d10
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
lea eax, [ebp - 0x18]
push 0x496458
push eax
call fcn.0043d910
add esp, 0x10
jmp 0x427ccb
cmp dword [ebp - 0x30], ebx
jne 0x427cac
cmp edi, ebx
jne 0x427cac
lea ecx, [ebp + 8]
mov dword [ebp - 0x24], 1
mov byte [ebp - 4], 8
call fcn.00444260
mov dword [ebp - 0x44], 0x45587c
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], 0xc
cmp eax, ebx
je 0x427d26
jmp 0x427d10
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
lea ecx, [ebp - 0x18]
push 0x49647c
push ecx
call fcn.0043d910
add esp, 0x14
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x50]
push 0xffffffffffffffff
mov esi, eax
inc eax
push eax
lea ecx, [ebp - 0x58]
call fcn.004282a0
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0x18]
push edx
lea ecx, [eax + esi*4]
call fcn.004443f0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 8
call fcn.00444260
mov dword [ebp - 0x44], 0x45587c
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], 0xd
cmp eax, ebx
je 0x427d26
mov ecx, dword [ebp - 0x3c]
push ecx
push eax
call fcn.0043db10
mov edx, dword [ebp - 0x40]
push edx
call fcn.00444ab0
add esp, 4
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 7
call fcn.00419ba0
test eax, eax
jne 0x427a65
mov esi, dword [ebp + 0x1c]
lea ecx, [ebp - 0x1c]
call fcn.00419b70
cmp dword [ebp - 0x24], ebx
je 0x427f56
lea ecx, [ebp - 0x10]
call fcn.004441d0
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x28]
push ecx
push 0x4964a0
push edx
lea ecx, [ebp - 0x1c]
call fcn.00419af0
test eax, eax
je 0x427efb
mov eax, dword [ebp - 0x50]
xor esi, esi
cmp eax, ebx
jle 0x427da3
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x10]
push eax
lea edx, [ecx + esi*4]
lea ecx, [ebp - 0x1c]
push edx
call fcn.00419c70
test eax, eax
je 0x427ef8
mov eax, dword [ebp - 0x50]
inc esi
cmp esi, eax
jl 0x427d80
mov esi, dword [ebp + 0x1c]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.00444260
mov dword [ebp - 0x58], 0x45587c
mov eax, dword [ebp - 0x54]
mov byte [ebp - 4], 0xf
cmp eax, ebx
je 0x427dda
mov ecx, dword [ebp - 0x50]
push ecx
push eax
call fcn.0043db10
mov edx, dword [ebp - 0x54]
push edx
call fcn.00444ab0
add esp, 4
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
cmp eax, ebx
mov byte [ebp - 4], 5
je 0x427e14
push 0x4964c4
lea eax, [ebp + 0x1c]
push edi
push eax
call fcn.004445c0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x10
push ecx
push eax
call fcn.00412fb0
add esp, 8
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 5
call fcn.00444260
push 0x4964d8
lea edx, [ebp + 0x1c]
push edi
push edx
call fcn.004445c0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x11
push ecx
push eax
call fcn.00412fb0
add esp, 8
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 5
call fcn.00444260
push 0x4964e8
lea edx, [ebp + 0x1c]
push edi
push edx
call fcn.004445c0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x12
push ecx
push eax
call fcn.00412fb0
add esp, 8
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 5
call fcn.00444260
push 0x4964f8
lea edx, [ebp + 0x1c]
push edi
push edx
call fcn.004445c0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x13
push ecx
push eax
call fcn.00412fb0
add esp, 8
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 5
call fcn.00444260
mov edx, dword [esi]
xor eax, eax
mov byte [ebp - 4], 4
mov ecx, dword [edx - 8]
cmp ecx, ebx
lea ecx, [ebp - 0x1c]
sete al
mov esi, eax
call fcn.00419ae0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00444260
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00444260
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00444260
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.00444260
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x1c]
mov eax, dword [0x4981ec]
mov dword [ebp + 0x1c], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x28]
push ecx
push edx
lea eax, [ebp + 0x1c]
push 0x4964a4
push eax
mov byte [ebp - 4], 0xe
call fcn.0043d910
mov ecx, dword [esi]
add esp, 0x10
cmp dword [ecx - 8], ebx
je 0x427f33
push 0x4964c0
mov ecx, esi
call fcn.00444760
lea edx, [ebp + 0x1c]
mov ecx, esi
push edx
call fcn.004447c0
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x10], 1
mov byte [ebp - 4], 7
call fcn.00444260
jmp 0x427da6
mov dword [ebp + 0x10], 1
jmp 0x427da6