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

Disassembly:
sub esp, 0x218
mov eax, dword [esp + 0x224]
mov ecx, dword [esp + 0x228]
push ebx
mov ebx, dword [esp + 0x220]
push ebp
push esi
mov esi, dword [esp + 0x22c]
push edi
xor edi, edi
xor ebp, ebp
mov dword [eax], edi
cmp ebx, edi
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 1
mov byte [esp + 0x11], 0
mov dword [esp + 0x18], edi
mov dword [ecx], edi
jne 0x42504d
cmp esi, edi
je 0x4251f3
cmp ebx, edi
mov dword [esp + 0x14], edi
jne 0x425202
mov edx, dword [esp + 0x230]
push edx
call dword [sym.imp.SHLWAPI.dll_StrDupW]
mov ebx, dword [sym.imp.KERNEL32.dll_SearchPathW]
mov esi, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x230], esi
cmp word [esi], 0x22
mov ebp, esi
jne 0x4250ab
mov ax, word [esi + 2]
add esi, 2
test ax, ax
mov byte [esp + 0x13], 0
mov ecx, esi
je 0x4250d8
cmp ax, 0x22
je 0x4250d6
mov ax, word [esi + 2]
add esi, 2
test ax, ax
mov ebp, esi
jne 0x425095
jmp 0x4250d8
mov ax, word [esi]
mov ecx, dword [esp + 0x230]
test ax, ax
je 0x4250d8
cmp ax, 0x20
je 0x4250d6
cmp ax, 9
je 0x4250d6
mov ax, word [esi + 2]
add esi, 2
test ax, ax
mov ebp, esi
jne 0x4250ba
jmp 0x4250d8
mov ebp, esi
mov ax, word [ebp]
lea edx, [esp + 0x20]
push 0
push edx
push 0x104
push 0x44a094
push ecx
push 0
mov word [esp + 0x34], ax
mov word [ebp], 0
call ebx
mov edi, eax
shl edi, 1
je 0x4251c2
cmp edi, 0x208
jae 0x42512a
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x425127
test al, 0x10
jne 0x4251c2
add edi, 2
test edi, edi
je 0x4251c2
cmp edi, 0x208
jae 0x4251c2
mov al, byte [esp + 0x11]
mov cx, word [esp + 0x1c]
test al, al
mov word [ebp], cx
lea ebx, [esp + 0x20]
jne 0x42515f
mov al, byte [esp + 0x12]
test al, al
je 0x4253c3
mov ecx, dword [esp + 0x230]
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
lea esi, [eax + eax + 6]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
mov dword [esp + 0x18], edi
je 0x4253a7
mov ecx, esi
shr ecx, 1
cmp ecx, 0x7fffffff
ja 0x425242
test ecx, ecx
mov edi, ecx
je 0x425242
mov edx, 0x44aee4
mov ecx, eax
sub edx, ecx
mov cx, word [edx + eax]
test cx, cx
je 0x425236
mov word [eax], cx
add eax, 2
dec edi
jne 0x4251ae
jmp 0x42523a
mov dx, word [esp + 0x1c]
mov word [ebp], dx
cmp word [esi], 0
je 0x4251e8
mov al, byte [esp + 0x13]
test al, al
je 0x4251e8
add esi, 2
mov byte [esp + 0x11], 1
mov ebp, esi
jmp 0x4250ab
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x218
ret 0x10
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4251f3
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4251f3
test esi, esi
je 0x425225
cmp word [esi], ax
jne 0x4253c7
mov byte [esp + 0x12], 1
mov dword [esp + 0x230], ebx
jmp 0x42515f
test edi, edi
jne 0x42523d
sub eax, 2
mov word [eax], 0
mov al, byte [esp + 0x11]
test al, al
je 0x425259
mov dx, word [ebp]
mov word [ebp], 0
mov word [esp + 0x1c], dx
cmp esi, 0x7fffffff
ja 0x425327
mov edi, dword [esp + 0x18]
mov ecx, esi
test esi, esi
mov eax, edi
je 0x4252cb
cmp word [eax], 0
je 0x42527f
add eax, 2
dec ecx
jne 0x425271
jmp 0x4252cb
test ecx, ecx
je 0x4252cb
lea eax, [esp + 0x14]
test eax, eax
je 0x425291
mov eax, esi
sub eax, ecx
jmp 0x425295
mov eax, dword [esp + 0x14]
mov edx, esi
sub edx, eax
lea eax, [edi + eax*2]
je 0x4252cb
mov edi, dword [esp + 0x230]
sub edi, eax
mov cx, word [edi + eax]
test cx, cx
je 0x4252bb
mov word [eax], cx
add eax, 2
dec edx
jne 0x4252a7
jmp 0x4252bf
test edx, edx
jne 0x4252c2
sub eax, 2
mov edi, dword [esp + 0x18]
mov word [eax], 0
test esi, esi
mov ecx, esi
mov eax, edi
je 0x42532b
cmp word [eax], 0
je 0x4252e1
add eax, 2
dec ecx
jne 0x4252d3
jmp 0x42532b
test ecx, ecx
je 0x42532b
lea edx, [esp + 0x14]
test edx, edx
je 0x4252f3
mov eax, esi
sub eax, ecx
jmp 0x4252f7
mov eax, dword [esp + 0x14]
mov edx, esi
sub edx, eax
lea eax, [edi + eax*2]
je 0x42532b
mov edi, 0x44aee4
sub edi, eax
mov cx, word [edi + eax]
test cx, cx
je 0x42531b
mov word [eax], cx
add eax, 2
dec edx
jne 0x425307
jmp 0x42531f
test edx, edx
jne 0x425322
sub eax, 2
mov word [eax], 0
mov edi, dword [esp + 0x18]
mov al, byte [esp + 0x11]
test al, al
je 0x4253c7
mov ax, word [esp + 0x1c]
cmp esi, 0x7fffffff
mov word [ebp], ax
ja 0x4253c7
test esi, esi
mov ecx, esi
mov eax, edi
je 0x4253c7
cmp word [eax], 0
je 0x42535e
add eax, 2
dec ecx
jne 0x425350
jmp 0x4253c7
test ecx, ecx
je 0x4253c7
lea edx, [esp + 0x14]
test edx, edx
je 0x425370
mov eax, esi
sub eax, ecx
jmp 0x425374
mov eax, dword [esp + 0x14]
sub esi, eax
lea eax, [edi + eax*2]
je 0x4253c7
sub ebp, eax
mov cx, word [eax + ebp]
test cx, cx
je 0x425399
mov word [eax], cx
add eax, 2
dec esi
jne 0x42537d
sub eax, 2
mov word [eax], 0
jmp 0x4253c7
test esi, esi
jne 0x4253a0
sub eax, 2
mov word [eax], 0
jmp 0x4253c7
mov al, byte [esp + 0x11]
test al, al
je 0x4253b4
mov byte [esp + 0x11], 0
mov al, byte [esp + 0x12]
test al, al
je 0x4253c7
mov byte [esp + 0x12], 0
jmp 0x4253c7
mov edi, dword [esp + 0x18]
mov esi, dword [sym.imp.SHLWAPI.dll_StrDupW]
push ebx
call esi
mov ecx, dword [esp + 0x234]
mov dword [ecx], eax
mov al, byte [esp + 0x11]
test al, al
jne 0x4253f0
mov al, byte [esp + 0x12]
test al, al
mov eax, dword [esp + 0x230]
je 0x4253f2
mov eax, edi
push eax
call esi
mov edx, dword [esp + 0x238]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [edx], eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x42540f
push eax
call esi
test edi, edi
je 0x425416
push edi
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x218
ret 0x10