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

Disassembly:
push 0xffffffffffffffff
push 0x5a2db4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa70
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x10]
lea esi, [ebp + 4]
push esi
call fcn.00588435
mov eax, dword [0x663588]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0xa88], ebx
je 0x47d6e9
mov edx, dword [0x663568]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x47d6e9
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x47d59b
push 0x663568
lea ecx, [esp + 0x14]
call fcn.005887f9
jmp 0x47d6f7
mov eax, dword [0x663568]
push 0x5c
push eax
call fcn.0056c5b0
mov edi, eax
add esp, 8
test edi, edi
je 0x47d6e9
push 0
lea ecx, [esp + 0x1c]
inc edi
call fcn.0042e3a0
push str._languages_
lea ecx, [esp + 0x98]
mov byte [esp + 0xa8c], 1
call fcn.00588849
push edi
lea ecx, [esp + 0x94]
call fcn.00588849
mov ecx, dword [0x663568]
push 0
push ecx
lea ecx, [esp + 0x84]
call fcn.00402600
mov edx, dword [ebp + 8]
push 0x664460
lea ecx, [esp + 0x7c]
mov dword [esp + 0x78], edx
mov byte [esp + 0x8c], 1
call fcn.005887f9
lea ecx, [esp + 0x18]
call fcn.00584656
cmp eax, 1
jne 0x47d63a
push 0x663568
lea ecx, [esp + 0x14]
call fcn.005887f9
mov ebx, 1
lea ecx, [esp + 0xd8]
mov byte [esp + 0xa88], 9
call fcn.00539850
lea ecx, [esp + 0x9c]
mov byte [esp + 0xa88], 8
call fcn.0059035b
lea ecx, [esp + 0x98]
mov byte [esp + 0xa88], 7
call fcn.005886c0
lea ecx, [esp + 0x94]
mov byte [esp + 0xa88], 6
call fcn.005886c0
lea ecx, [esp + 0x90]
mov byte [esp + 0xa88], 5
call fcn.005886c0
lea ecx, [esp + 0x8c]
mov byte [esp + 0xa88], 4
call fcn.005886c0
lea ecx, [esp + 0x7c]
mov byte [esp + 0xa88], 3
call fcn.00401070
lea ecx, [esp + 0x78]
mov byte [esp + 0xa88], 2
call fcn.005886c0
lea ecx, [esp + 0x18]
mov byte [esp + 0xa88], 0
call fcn.00584297
test ebx, ebx
jne 0x47d6f7
push str.idman.chm
lea ecx, [esp + 0x14]
call fcn.00588a36
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
call edi
cmp eax, 0xffffffff
jne 0x47d9b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x47d9b9
push esi
lea ecx, [esp + 0x18]
call fcn.00588435
mov bl, 0xa
push str.idman.hlp
lea ecx, [esp + 0x18]
mov byte [esp + 0xa8c], bl
call fcn.00588a36
mov ecx, dword [esp + 0x14]
push ecx
call edi
cmp eax, 0xffffffff
je 0x47d773
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.00584fbf
mov edx, dword [esp + 0xa90]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [eax + 0x1c]
push 1
push ecx
push edx
call dword [sym.imp.USER32.dll_WinHelpA]
jmp 0x47d8e8
push 0
lea ecx, [esp + 0x1c]
call fcn.0042e3a0
push str._data_v4_
lea ecx, [esp + 0x98]
mov byte [esp + 0xa8c], 0xb
call fcn.00588849
push str.idman.chm
lea ecx, [esp + 0x94]
call fcn.00588849
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x7c]
call fcn.00401070
test esi, esi
je 0x47d80f
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x47d80f
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push eax
push 0xffffffffffffffff
push esi
push eax
push eax
call edi
test eax, eax
mov dword [esp + 0x84], eax
je 0x47d80f
lea eax, [eax + eax + 2]
push eax
call fcn.00584a5c
add esp, 4
mov dword [esp + 0x7c], eax
test eax, eax
je 0x47d80f
mov ecx, dword [esp + 0x84]
push ecx
push eax
push 0xffffffffffffffff
push esi
push 0
push 0
call edi
mov dword [esp + 0x84], eax
mov edx, dword [ebp + 8]
push 0x664460
lea ecx, [esp + 0x7c]
mov dword [esp + 0x78], edx
mov byte [esp + 0x8c], 1
call fcn.005887f9
lea ecx, [esp + 0x18]
call fcn.00584656
cmp eax, 1
je 0x47d8fe
lea ecx, [esp + 0xd8]
mov byte [esp + 0xa88], 0x13
call fcn.00539850
lea ecx, [esp + 0x9c]
mov byte [esp + 0xa88], 0x12
call fcn.0059035b
lea ecx, [esp + 0x98]
mov byte [esp + 0xa88], 0x11
call fcn.005886c0
lea ecx, [esp + 0x94]
mov byte [esp + 0xa88], 0x10
call fcn.005886c0
lea ecx, [esp + 0x90]
mov byte [esp + 0xa88], 0xf
call fcn.005886c0
lea ecx, [esp + 0x8c]
mov byte [esp + 0xa88], 0xe
call fcn.005886c0
lea ecx, [esp + 0x7c]
mov byte [esp + 0xa88], 0xd
call fcn.00401070
lea ecx, [esp + 0x78]
mov byte [esp + 0xa88], 0xc
call fcn.005886c0
lea ecx, [esp + 0x18]
mov byte [esp + 0xa88], bl
call fcn.00584297
lea ecx, [esp + 0x14]
mov byte [esp + 0xa88], 0
call fcn.005886c0
jmp 0x47da04
lea ecx, [esp + 0xd8]
mov byte [esp + 0xa88], 0x1b
call fcn.00539850
lea ecx, [esp + 0x9c]
mov byte [esp + 0xa88], 0x1a
call fcn.0059035b
lea ecx, [esp + 0x98]
mov byte [esp + 0xa88], 0x19
call fcn.005886c0
lea ecx, [esp + 0x94]
mov byte [esp + 0xa88], 0x18
call fcn.005886c0
lea ecx, [esp + 0x90]
mov byte [esp + 0xa88], 0x17
call fcn.005886c0
lea ecx, [esp + 0x8c]
mov byte [esp + 0xa88], 0x16
call fcn.005886c0
lea ecx, [esp + 0x7c]
mov byte [esp + 0xa88], 0x15
call fcn.00401070
lea ecx, [esp + 0x78]
mov byte [esp + 0xa88], 0x14
call fcn.005886c0
lea ecx, [esp + 0x18]
mov byte [esp + 0xa88], bl
call fcn.00584297
lea ecx, [esp + 0x14]
mov byte [esp + 0xa88], 0
call fcn.005886c0
mov esi, dword [esp + 0xa94]
test esi, esi
je 0x47d9dc
push 0x640394
lea ecx, [esp + 0x14]
call fcn.00588a36
push esi
lea ecx, [esp + 0x14]
call fcn.00588a36
mov eax, dword [0x663a28]
test eax, eax
je 0x47da04
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.00584fbf
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + 0x1c]
push 0
push 0
push ecx
push edx
call dword [0x663a28]
lea ecx, [esp + 0x10]
mov dword [esp + 0xa88], 0xffffffff
call fcn.005886c0
mov ecx, dword [esp + 0xa80]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa7c
ret 8