Function at 0x405556
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 [0x42a50c]
push 6
call fcn.00405d19
xor ebx, ebx
cmp eax, ebx
je 0x405584
call eax
movzx eax, ax
push eax
push 0x437000
call fcn.00405b5c
jmp 0x4055df
push 0x30
pop eax
push 0x78
mov word [0x437000], ax
pop eax
push ebx
mov esi, 0x4231e0
push esi
push ebx
mov word [0x437002], ax
push str.Control_PanelDesktopResourceLocale
xor eax, eax
push 0x80000001
mov word [0x437004], ax
call fcn.00405ade
cmp word [0x4231e0], bx
jne 0x4055d4
push ebx
push esi
push 0x40873c
push str..DEFAULTControl_PanelInternational
push 0x80000003
call fcn.00405ade
push esi
push 0x437000
call sub.KERNEL32.dll_lstrcatW
call fcn.00403b5e
mov eax, dword [0x42a568]
and eax, 0x20
push 0x435800
mov dword [0x42a5c0], eax
mov dword [0x42a5dc], 0x10000
call fcn.0040622c
test eax, eax
jne 0x4056a1
mov ecx, dword [edi + 0x48]
cmp ecx, ebx
je 0x4056a1
mov eax, dword [0x42a538]
mov edx, dword [edi + 0x4c]
push ebx
mov esi, 0x4284a0
push esi
lea edx, [eax + edx*2]
push edx
lea eax, [eax + ecx*2]
push eax
push dword [edi + 0x44]
call fcn.00405ade
mov ax, word [0x4284a0]
cmp ax, bx
je 0x4056a1
cmp ax, 0x22
jne 0x40565c
mov eax, 0x4284a2
push 0x22
push eax
mov esi, eax
call fcn.00405911
xor ecx, ecx
mov word [eax], cx
push esi
call sub.KERNEL32.dll_lstrlenW
lea eax, [esi + eax*2 - 8]
cmp eax, esi
jbe 0x405690
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x405690
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40568a
test al, 0x10
jne 0x405690
push esi
call fcn.004061ff
push esi
call fcn.004061d0
push eax
push 0x435800
call fcn.00405c14
mov esi, 0x435800
push esi
call fcn.0040622c
test eax, eax
jne 0x4056bc
push dword [edi + 0x118]
push esi
call fcn.004062b3
push 0x8040
push ebx
push ebx
push 1
push 0x67
push dword [0x42a508]
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [0x4294d0], eax
cmp dword [edi + 0x50], 0xffffffff
mov esi, 0x4294a0
je 0x405771
mov ecx, dword [0x40869c]
mov dword [ebp - 8], ecx
mov ecx, dword [0x4086a0]
mov dword [ebp - 4], ecx
mov ecx, dword [0x42a508]
mov dword [0x4294b4], eax
lea eax, [ebp - 8]
push esi
mov dword [0x4294a4], 0x401000
mov dword [0x4294b0], ecx
mov dword [0x4294c4], eax
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
je 0x405843
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 [0x42a508]
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 [0x4219d8], eax
push ebx
call fcn.0040141a
test eax, eax
je 0x405783
push 2
pop eax
jmp 0x405845
call fcn.00403b5e
cmp dword [0x42a5e0], ebx
jne 0x40581a
push 5
push dword [0x4219d8]
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.RichEd20
call edi
test eax, eax
jne 0x4057ba
push str.RichEd32
call edi
mov edi, dword [sym.imp.USER32.dll_GetClassInfoW]
push esi
push 0x40865c
push ebx
call edi
test eax, eax
jne 0x4057e7
push esi
push str.RichEdit
push ebx
call edi
push esi
mov dword [0x4294c4], 0x40865c
call dword [sym.imp.USER32.dll_RegisterClassW]
mov eax, dword [0x4294dc]
push ebx
push 0x4050a3
add eax, 0x69
movzx eax, ax
push ebx
push eax
push dword [0x42a508]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
push 5
mov esi, eax
call fcn.0040141a
push 1
call fcn.00403952
mov eax, esi
jmp 0x405845
push ebx
call fcn.00404ca6
test eax, eax
je 0x40583c
cmp dword [0x4294d4], ebx
jne 0x40577b
push 2
call fcn.0040141a
jmp 0x40577b
push 1
call fcn.0040141a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret