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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [0x47b2bc]
push 6
call fcn.00405bbf
sub ebx, ebx
cmp eax, ebx
je 0x405426
call eax
movzx eax, ax
push eax
push 0x4dc0c0
call fcn.004059ff
jmp 0x405481
push 0x30
pop eax
push 0x78
mov word [0x4dc0c0], ax
pop eax
push ebx
mov esi, 0x44fd98
push esi
push ebx
mov word [0x4dc0c2], ax
push str.7ayziho51f65higcfyb0drx8oqtujjlvpin7e
sub eax, eax
push 0x80000001
mov word [0x4dc0c4], ax
call fcn.00405981
cmp word [0x44fd98], bx
jne 0x405476
push ebx
push esi
push 0x40870c
push str.w3w691r8aym41tgkc1j3jar1i1xg2ulhe0a9n
push 0x80000003
call fcn.00405981
push esi
push 0x4dc0c0
call sub.kernel32.dll_lstrcatW
call fcn.004039fc
mov eax, dword [0x47b308]
and eax, 0x20
push 0x4d00a8
mov dword [0x47b360], eax
mov dword [0x47b37c], 0x10000
call fcn.00406042
or eax, eax
jne 0x405543
mov ecx, dword [edi + 0x48]
cmp ecx, ebx
je 0x405543
mov eax, dword [0x47b2d8]
mov edx, dword [edi + 0x4c]
push ebx
mov esi, 0x46b220
push esi
lea edx, [eax + edx*2]
push edx
lea eax, [eax + ecx*2]
push eax
push dword [edi + 0x44]
call fcn.00405981
mov ax, word [0x46b220]
cmp ax, bx
je 0x405543
cmp ax, 0x22
jne 0x4054fe
mov eax, 0x46b222
push 0x22
push eax
push eax
pop esi
call fcn.004057b3
sub ecx, ecx
mov word [eax], cx
push esi
call sub.kernel32.dll_lstrlenW
lea eax, [esi + eax*2 - 8]
cmp eax, esi
jbe 0x405532
push str..exe
push eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
or eax, eax
jne 0x405532
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40552c
test al, 0x10
jne 0x405532
push esi
call fcn.00406015
push esi
call fcn.00405fe6
push eax
push 0x4d00a8
call fcn.00405ab8
mov esi, 0x4d00a8
push esi
call fcn.00406042
or eax, eax
jne 0x40555e
push dword [edi + 0x118]
push esi
call fcn.004060ca
push 0x8040
push ebx
push ebx
push 1
push 0x67
push dword [0x47b2b8]
call dword [sym.imp.user32.dll_LoadImageW]
mov dword [0x473270], eax
cmp dword [edi + 0x50], 0xffffffff
mov esi, 0x473240
je 0x405613
mov ecx, dword [0x40866c]
mov dword [ebp - 8], ecx
mov ecx, dword [0x408670]
mov dword [ebp - 4], ecx
mov ecx, dword [0x47b2b8]
mov dword [0x473254], eax
lea eax, [ebp - 8]
push esi
mov dword [0x473244], 0x401000
mov dword [0x473250], ecx
mov dword [0x473264], eax
call dword [sym.imp.user32.dll_RegisterClassW]
test ax, ax
je 0x4056e5
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push 0x30
call dword [sym.imp.user32.dll_SystemParametersInfoW]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push ebx
push dword [0x47b2b8]
push ebx
push ebx
push eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 8]
push dword [ebp - 0x18]
push 0x80000000
push ebx
push eax
push 0x80
call dword [sym.imp.user32.dll_CreateWindowExW]
mov dword [0x443d78], eax
push ebx
call fcn.0040141d
or eax, eax
je 0x405625
push 2
pop eax
jmp 0x4056e7
call fcn.004039fc
cmp dword [0x47b380], ebx
jne 0x4056bc
push 5
push dword [0x443d78]
call dword [sym.imp.user32.dll_ShowWindow]
mov edi, dword [sym.imp.kernel32.dll_LoadLibraryW]
push str.z580h4pbp
call edi
or eax, eax
jne 0x40565c
push 0x408644
call edi
mov edi, dword [sym.imp.user32.dll_GetClassInfoW]
push esi
push str.fp5rk7ydqq5t7j5g9tusq
push ebx
call edi
or eax, eax
jne 0x405689
push esi
push 0x408618
push ebx
call edi
push esi
mov dword [0x473264], 0x40862c
call dword [sym.imp.user32.dll_RegisterClassW]
mov eax, dword [0x47327c]
push ebx
push 0x404f45
add eax, 0x69
movzx eax, ax
push ebx
push eax
push dword [0x47b2b8]
call dword [sym.imp.user32.dll_DialogBoxParamW]
push 5
push eax
pop esi
call fcn.0040141d
push 1
call fcn.004037f0
push esi
pop eax
jmp 0x4056e7
push ebx
call fcn.00404b48
or eax, eax
je 0x4056de
cmp dword [0x473274], ebx
jne 0x40561d
push 2
call fcn.0040141d
jmp 0x40561d
push 1
call fcn.0040141d
sub eax, eax
pop edi
pop esi
pop ebx
leave
ret