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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x533408
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x56adc0]
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
xor esi, esi
cmp ecx, esi
je 0x425361
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 4], esi
xor eax, eax
mov word [ebp - 0x48], ax
mov edi, 7
mov eax, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
lea ebx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, si
jne 0x425277
sub eax, ebx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x48]
call fcn.00404bd5
push esi
sub esp, 0xc
mov byte [ebp - 4], 1
mov esi, esp
mov dword [ebp - 0x50], esp
call fcn.00428810
lea ecx, [ebp - 0x48]
push ecx
lea ebx, [ebp - 0x60]
call fcn.00428860
mov edx, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x5c]
add esp, 0x14
mov byte [ebp - 0x50], 0
mov eax, edx
cmp edx, ecx
je 0x4252e7
cmp dword [eax + 0x10], 0
je 0x4252d0
add eax, 0x1c
cmp eax, ecx
jne 0x4252c1
jmp 0x4252e7
cmp ecx, eax
je 0x425316
mov edx, dword [ebp - 0x50]
push edx
push ecx
call fcn.00429360
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x60]
add esp, 8
cmp ecx, eax
je 0x425316
mov edx, dword [ebp - 0x50]
push edx
push eax
push ecx
push ecx
call fcn.00421390
mov edx, dword [ebp - 0x5c]
mov esi, eax
mov eax, dword [ebp - 0x50]
push eax
lea ecx, [ebp - 0x54]
push ecx
push edx
push esi
call fcn.00421350
mov edx, dword [ebp - 0x60]
mov ecx, esi
add esp, 0x20
mov dword [ebp - 0x5c], ecx
cmp edx, ecx
jne 0x425368
cmp dword [ebp - 0x34], 8
jb 0x425332
mov eax, dword [ebp - 0x48]
push eax
call fcn.004f77ab
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x60]
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
test edx, edx
je 0x425361
mov eax, dword [ebp - 0x50]
push eax
lea eax, [ebp - 0x54]
push eax
push ecx
push edx
call fcn.00421350
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.004f77ab
add esp, 0x14
xor al, al
jmp 0x425450
mov esi, edx
xor edx, edx
mov byte [ebp - 0x49], 1
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
mov byte [ebp - 4], 2
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov bl, 1
lea ebx, [ebx]
cmp esi, ecx
je 0x4253e3
cmp byte [ebp - 0x49], 0
lea ecx, [ebp - 0x2c]
je 0x42546c
push 0xffffffffffffffff
push 0
push esi
mov byte [ebp - 0x49], 0
call fcn.004044ed
cmp dword [ebp - 0x18], 8
jb 0x4253c0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x4253c3
xor bl, bl
jmp 0x4253d9
lea eax, [ebp - 0x2c]
push eax
call edi
cmp eax, 0xffffffff
je 0x4254c2
test al, 0x10
je 0x4254c2
mov bl, 1
mov ecx, dword [ebp - 0x5c]
add esi, 0x1c
test bl, bl
jne 0x425390
cmp dword [ebp - 0x18], 8
jb 0x4253f8
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004f77ab
mov ecx, dword [ebp - 0x5c]
add esp, 4
xor edi, edi
xor edx, edx
cmp dword [ebp - 0x34], 8
mov esi, 7
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], dx
jb 0x425420
mov eax, dword [ebp - 0x48]
push eax
call fcn.004f77ab
mov ecx, dword [ebp - 0x5c]
add esp, 4
mov eax, dword [ebp - 0x60]
xor edx, edx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], dx
cmp eax, edi
je 0x42544e
mov edx, dword [ebp - 0x50]
push edx
lea edx, [ebp - 0x54]
push edx
push ecx
push eax
call fcn.00421350
mov eax, dword [ebp - 0x60]
push eax
call fcn.004f77ab
add esp, 0x14
mov al, bl
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.004f6bad
mov esp, ebp
pop ebp
ret
push 1
push 0x549abc
call fcn.00404b34
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x2c]
call fcn.00404a91
mov ebx, 8
cmp dword [ebp - 0x18], ebx
jb 0x4254c9
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4254a9
push eax
call edi
cmp eax, 0xffffffff
je 0x4254a6
test al, 0x10
jne 0x4253d7
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x4254b1
lea eax, [ebp - 0x2c]
push eax
call fcn.004f8e4d
add esp, 4
test eax, eax
je 0x4253d7
xor bl, bl
jmp 0x4253d9
lea eax, [ebp - 0x2c]
jmp 0x425496