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

Disassembly:
sub esp, 0x54
mov eax, dword [0x4890a0]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x60]
push esi
push edi
xor ebx, ebx
push 0x104
lea esi, [ebp + 8]
push ebx
push esi
mov edi, ecx
mov byte [ebp + 0x24c], bl
mov dword [ebp + 0x250], ebx
call fcn.00433f90
add esp, 0xc
push 0x103
push edi
push 0x104
push esi
call fcn.004319f5
add esp, 0x10
cmp word [esi], 0x2a
jne 0x414573
push ebx
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov edi, eax
push 0xa
lea eax, [ebp + 0xa]
push eax
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x414518
mov edi, dword [sym.imp.kernel32.dll_EnterCriticalSection]
push 0x4d6b98
call edi
mov eax, dword [0x4dbb60]
cmp eax, ebx
je 0x4144d4
push 0x483248
call eax
add esp, 4
mov ebp, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
push 0x4d6b98
call ebp
push 0x4d6b98
call edi
mov eax, dword [0x4dbb60]
cmp eax, ebx
je 0x4144f7
push esi
call eax
add esp, 4
push 0x4d6b98
call ebp
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.00431784
add esp, 0x54
ret 8
push eax
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp + 0x254], eax
cmp eax, ebx
je 0x4144fe
mov ecx, dword [esp + 0x10]
push ecx
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov ebx, eax
push ebx
call dword [sym.imp.kernel32.dll_LockResource_1]
mov edi, dword [ebp + 0x254]
push eax
mov al, byte [esp + 0x70]
mov esi, ebp
call fcn.00414380
mov byte [ebp + 0x24c], 1
mov dword [ebp + 0x250], ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.00431784
add esp, 0x54
ret 8
mov dl, byte [esp + 0x6c]
lea edi, [ebp + 0x248]
push edi
mov eax, ebp
mov byte [ebp + 2], dl
mov dword [ebp + 0x220], ebx
call fcn.00415370
cmp eax, ebx
jne 0x414713
mov ecx, dword [edi]
mov edx, dword [ecx]
lea eax, [esp + 0x20]
push eax
push edx
call dword [sym.imp.kernel32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x4145cb
mov esi, dword [edi]
call fcn.004154b0
mov eax, 5
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.00431784
add esp, 0x54
ret 8
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov edx, dword [edi]
mov esi, dword [sym.imp.kernel32.dll_SetFilePointer]
mov dword [ebp + 0x21c], ecx
push 2
lea ecx, [esp + 0x18]
push ecx
mov dword [ebp + 0x218], eax
mov eax, dword [edx]
push ebx
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call esi
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x41461a
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
je 0x414616
or eax, 0xffffffff
or ecx, eax
jmp 0x41461e
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, eax
or edx, ecx
mov dword [ebp + 0x210], eax
mov dword [ebp + 0x214], ecx
je 0x4145aa
cmp ecx, 1
jl 0x414660
jg 0x41463f
cmp eax, ebx
jb 0x414660
mov esi, dword [edi]
call fcn.004154b0
mov eax, 7
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.00431784
add esp, 0x54
ret 8
mov eax, dword [edi]
mov eax, dword [eax]
push ebx
lea ecx, [esp + 0x18]
push ecx
push ebx
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call esi
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x41468e
lea esi, [esp + 0x10]
call fcn.00414350
mov esi, dword [sym.imp.kernel32.dll_SetFilePointer]
mov ecx, dword [edi]
push ebx
lea edx, [esp + 0x20]
push edx
push 2
lea eax, [esp + 0x60]
mov byte [ebp + 1], bl
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x4146ce
mov esi, dword [edi]
call fcn.004154b0
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.00431784
add esp, 0x54
ret 8
cmp dword [esp + 0x1c], 2
jne 0x414711
cmp byte [esp + 0x54], 0xff
jne 0x4146e9
cmp byte [esp + 0x55], 0xfe
jne 0x4146e9
mov byte [ebp + 1], 1
jmp 0x414711
mov eax, dword [edi]
mov eax, dword [eax]
push ebx
lea ecx, [esp + 0x18]
push ecx
push ebx
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call esi
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x414711
lea esi, [esp + 0x10]
call fcn.00414350
xor eax, eax
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00431784
add esp, 0x54
ret 8