Function at 0x4142ac
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x47e5d0]
xor eax, ebp
mov dword [ebp + 0x98], eax
mov eax, dword [ebp + 0xac]
push ebx
mov ebx, dword [ebp + 0xb8]
push esi
mov esi, dword [ebp + 0xa4]
push edi
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0xb0]
mov edi, 0x103
push edi
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x6b]
push 0
push eax
mov byte [ebp - 0x6c], 0
call fcn.00452e00
add esp, 0xc
test esi, esi
je 0x414316
cmp byte [esi], 0
je 0x414316
push esi
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x41432a
push edi
lea eax, [ebp - 0x6c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [ebp - 0x78]
xor esi, esi
cmp edi, esi
je 0x41433e
cmp dword [ebp + 0xb4], esi
jle 0x41433e
mov byte [edi], 0
cmp ebx, esi
je 0x414345
mov byte [ebx], 0
cmp byte [ebp - 0x6c], 0
je 0x41435a
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x74], eax
jmp 0x41435d
mov dword [ebp - 0x74], esi
cmp dword [ebp - 0x74], esi
jne 0x4143b5
cmp ebx, esi
je 0x4143ae
push esi
push 0xff
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x4143a9
mov cl, byte [ebx + eax]
cmp cl, 0x20
je 0x4143a5
cmp cl, 9
je 0x4143a5
cmp cl, 0xd
je 0x4143a5
cmp cl, 0xa
jne 0x4143ae
mov byte [ebx + eax], 0
dec eax
cmp eax, esi
jg 0x41438e
xor eax, eax
jmp 0x414605
movzx eax, word [ebp + 0xa8]
push 0xa
push eax
push dword [ebp - 0x74]
mov dword [ebp - 0x70], esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x41442a
test ebx, ebx
je 0x4145f9
push eax
push 0xff
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x414420
mov cl, byte [ebx + eax]
cmp cl, 0x20
je 0x41441c
cmp cl, 9
je 0x41441c
cmp cl, 0xd
je 0x41441c
cmp cl, 0xa
jne 0x4145f9
mov byte [ebx + eax], 0
dec eax
test eax, eax
jg 0x414401
jmp 0x4145f9
push esi
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x80], eax
test eax, eax
jne 0x414495
test ebx, ebx
je 0x4145f9
push eax
push 0xff
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x41448b
mov cl, byte [ebx + eax]
cmp cl, 0x20
je 0x414487
cmp cl, 9
je 0x414487
cmp cl, 0xd
je 0x414487
cmp cl, 0xa
jne 0x4145f9
mov byte [ebx + eax], 0
dec eax
test eax, eax
jg 0x41446c
jmp 0x4145f9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x78], eax
test eax, eax
jne 0x4144fd
test ebx, ebx
je 0x4145f0
push eax
push 0xff
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x4144f3
mov cl, byte [ebx + eax]
cmp cl, 0x20
je 0x4144ef
cmp cl, 9
je 0x4144ef
cmp cl, 0xd
je 0x4144ef
cmp cl, 0xa
jne 0x4145f0
mov byte [ebx + eax], 0
dec eax
test eax, eax
jg 0x4144d4
jmp 0x4145f0
push esi
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x70], eax
test edi, edi
je 0x414540
mov esi, dword [ebp + 0xb4]
mov ecx, esi
cmp esi, eax
jb 0x41451c
mov ecx, eax
test ecx, ecx
je 0x414536
cmp esi, eax
jae 0x414526
mov eax, esi
push eax
push dword [ebp - 0x78]
push edi
call fcn.00452790
mov eax, dword [ebp - 0x70]
add esp, 0xc
cmp esi, eax
jae 0x41453c
mov eax, esi
mov byte [eax + edi], 0
xor eax, eax
cmp dword [ebp - 0x7c], eax
je 0x4145f0
push eax
push 0x80
push 4
push eax
push 3
push 0xc0000000
push dword [ebp - 0x7c]
call fcn.00413e0e
mov edi, eax
cmp edi, 0xffffffff
jne 0x4145bd
xor esi, esi
cmp ebx, esi
je 0x4145b8
push esi
push 0xff
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x4145b3
mov cl, byte [ebx + eax]
cmp cl, 0x20
je 0x4145af
cmp cl, 9
je 0x4145af
cmp cl, 0xd
je 0x4145af
cmp cl, 0xa
jne 0x4145b8
mov byte [ebx + eax], 0
dec eax
cmp eax, esi
jg 0x414598
mov dword [ebp - 0x70], esi
jmp 0x4145f0
push 0
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
push dword [ebp - 0x78]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call esi
push 0
call esi
test edi, edi
je 0x4145f0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FreeResource]
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp + 0x98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00452dee
add ebp, 0x9c
leave
ret 0x18