Function at 0x405a18
Capabilities:
Extract resource via kernel32 functions
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x121]
push eax
push 0
call sub.KERNEL32.DLL_InitializeCriticalSection
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405c5c
push 0x80000001
call sub.user32.dll_UnhookWindowsHookEx
test eax, eax
je 0x405a9a
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405c5c
push 0x80000002
call sub.user32.dll_UnhookWindowsHookEx
test eax, eax
je 0x405a9a
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405c78
push 0x80000001
call sub.user32.dll_UnhookWindowsHookEx
test eax, eax
jne 0x405b23
xor eax, eax
push ebp
push 0x405b1c
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x121]
mov edx, 0x105
call fcn.00405840
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x121]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_UnregisterClassA
test eax, eax
je 0x405b01
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405c98
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_UnregisterClassA
test eax, eax
je 0x405b01
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405b23
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_TranslateMessage
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x121]
push eax
call sub.KERNEL32.DLL_MultiByteToWideChar
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_LockResource
push eax
call sub.KERNEL32.DLL_GlobalUnlock
xor ebx, ebx
cmp byte [ebp - 0x121], 0
je 0x405c53
cmp byte [ebp - 0xd], 0
jne 0x405b6a
cmp byte [ebp - 0x12], 0
je 0x405c53
lea eax, [ebp - 0x121]
push eax
call sub.KERNEL32.DLL_ReadFile
lea edx, [ebp - 0x121]
add eax, edx
mov dword [ebp - 0x1c], eax
jmp 0x405b86
dec dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
cmp byte [eax], 0x2e
je 0x405b99
lea eax, [ebp - 0x121]
cmp eax, dword [ebp - 0x1c]
jne 0x405b83
lea eax, [ebp - 0x121]
cmp eax, dword [ebp - 0x1c]
je 0x405c53
inc dword [ebp - 0x1c]
cmp byte [ebp - 0x12], 0
je 0x405bdd
mov edx, dword [ebp - 0x1c]
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.KERNEL32.DLL_MultiByteToWideChar
push 2
push 0
lea eax, [ebp - 0x121]
push eax
call sub.KERNEL32.DLL_MulDiv
mov ebx, eax
test ebx, ebx
jne 0x405c53
cmp byte [ebp - 0xd], 0
je 0x405c53
lea eax, [ebp - 0x121]
mov edx, dword [ebp - 0x1c]
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.KERNEL32.DLL_MultiByteToWideChar
push 2
push 0
lea eax, [ebp - 0x121]
push eax
call sub.KERNEL32.DLL_MulDiv
mov ebx, eax
test ebx, ebx
jne 0x405c53
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x121]
mov edx, dword [ebp - 0x1c]
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.KERNEL32.DLL_MultiByteToWideChar
push 2
push 0
lea eax, [ebp - 0x121]
push eax
call sub.KERNEL32.DLL_MulDiv
mov ebx, eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret