Function at 0x414160
Capabilities:
Extract resource via kernel32 functions
Get file size
Read file on windows

Disassembly:
sub esp, 0x448
mov eax, dword [0x431114]
xor eax, esp
mov dword [esp + 0x444], eax
push edi
mov edi, dword [esp + 0x450]
push edi
call fcn.004140e0
test eax, eax
jl 0x41456c
imul eax, eax, 0x53c
push ebx
mov ebx, dword [eax + ecx + 0x34c]
push ebp
mov ebp, dword [eax + ecx + 0x358]
push esi
lea esi, [eax + ecx]
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x41436e
cmp dword [esi + 0x884], 0
jne 0x414235
movzx eax, bp
push 0x17
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x414235
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x414235
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push ebx
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
push ebp
call fcn.004160af
mov ecx, dword [esp + 0x14]
push ebp
mov edi, eax
push ecx
push edi
call fcn.00416d60
add esp, 0x10
mov dword [esi + 0x360], ebp
mov dword [esi + 0x364], edi
cmp byte [edi], 0xfd
jbe 0x414227
cmp byte [edi + 1], 0xfd
jbe 0x414227
mov dword [esi + 0x35c], 1
jmp 0x414231
mov dword [esi + 0x35c], 0
mov ebp, dword [esp + 0x14]
cmp dword [esi + 0x884], 1
jne 0x414569
movzx edx, bp
push 0xa
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x414569
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x414569
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push eax
push ebp
call fcn.00408ea0
mov edi, eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x262]
push ecx
mov word [esp + 0x264], ax
call fcn.00416560
mov edx, dword [esp + 0x474]
push edx
lea eax, [esp + 0x268]
push str._04x.txt
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x38]
push edx
push 1
lea eax, [esp + 0x27c]
push eax
push edi
call fcn.004068e0
add esp, 0x38
test eax, eax
jne 0x414569
mov ecx, dword [esp + 0x248]
push ecx
call fcn.004160af
mov edx, dword [esp + 0x24c]
push edx
mov ebp, eax
mov eax, dword [esp + 0x18]
push ebp
push eax
push edi
call fcn.00408f50
mov ecx, dword [esp + 0x25c]
push ecx
call fcn.004160af
mov edx, dword [esp + 0x260]
push edx
mov ebx, eax
push ebp
push ebx
call fcn.00416d60
push ebp
call fcn.0041603a
push edi
call fcn.00408f70
mov eax, dword [esp + 0x274]
add esp, 0x2c
mov dword [esi + 0x360], eax
mov dword [esi + 0x364], ebx
cmp byte [ebx], 0xfd
jbe 0x41435f
cmp byte [ebx + 1], 0xfd
jbe 0x41435f
mov dword [esi + 0x35c], 1
jmp 0x414569
mov dword [esi + 0x35c], 0
jmp 0x414569
cmp dword [esi + 0x884], 1
jne 0x41447d
lea ecx, [esi + 0x67c]
push 0
push ecx
call fcn.00408e80
xor edx, edx
push 0x206
mov ebp, eax
push edx
lea eax, [esp + 0x25e]
push eax
mov word [esp + 0x260], dx
call fcn.00416560
push edi
lea ecx, [esp + 0x264]
push str._04x.txt
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [esp + 0x26c]
push edx
push str.szLang__s_n
call fcn.0040e270
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x3c]
push ecx
push 1
lea edx, [esp + 0x280]
push edx
push ebp
call fcn.004068e0
add esp, 0x3c
test eax, eax
jne 0x41447d
mov eax, dword [esp + 0x248]
push eax
call fcn.004160af
mov ecx, dword [esp + 0x24c]
mov edx, dword [esp + 0x14]
push ecx
mov ebx, eax
push ebx
push edx
push ebp
call fcn.00408f50
mov eax, dword [esp + 0x25c]
add eax, 4
push eax
call fcn.004160af
mov ecx, dword [esp + 0x260]
add ecx, 4
push ecx
mov edi, eax
push ebx
push edi
call fcn.00416d60
push ebx
call fcn.0041603a
push ebp
call fcn.00408f70
mov edx, dword [esp + 0x274]
add esp, 0x2c
mov dword [esi + 0x364], edi
mov dword [esi + 0x360], edx
cmp byte [edi], 0xfd
jbe 0x414473
cmp byte [edi + 1], 0xfd
jbe 0x414473
mov dword [esi + 0x35c], 1
jmp 0x41447d
mov dword [esi + 0x35c], 0
cmp dword [esi + 0x884], 0
jne 0x414569
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea eax, [esi + 0x67c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x414569
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea edi, [eax + 4]
push edi
mov dword [esp + 0x1c], eax
call fcn.004160af
push edi
mov ebp, eax
call fcn.004160af
push edi
push 0
push ebp
mov ebx, eax
call fcn.00416560
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
add esp, 0x14
push 0
lea ecx, [esp + 0x18]
push ecx
push edx
push ebp
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push ebp
push ebx
call fcn.00416d60
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
jbe 0x414544
mov dword [esi + 0x364], ebx
mov dword [esi + 0x360], eax
cmp byte [ebx], 0xfd
jbe 0x414538
cmp byte [ebx + 1], 0xfd
jbe 0x414538
mov dword [esi + 0x35c], 1
jmp 0x414551
mov dword [esi + 0x35c], 0
jmp 0x414551
test ebx, ebx
je 0x414551
push ebx
call fcn.0041603a
add esp, 4
test ebp, ebp
je 0x41455e
push ebp
call fcn.0041603a
add esp, 4
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x448]
pop edi
xor ecx, esp
call fcn.004164fa
add esp, 0x448
ret 4