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

Disassembly:
push ebp
sub esp, 0x80
lea ebp, [esp - 4]
mov eax, dword [0x47cbc0]
xor eax, ebp
mov dword [ebp + 0x80], eax
push 0x40
mov eax, 0x45d2ad
call fcn.004400cd
xor ebx, ebx
mov dword [ebp - 4], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 7
pop esi
push ebx
lea ecx, [ebp]
mov dword [ebp - 0x14], eax
mov dword [ebp + 0x18], esi
call fcn.0040171f
push ebx
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x34], esi
call fcn.0040171f
push dword [0x462734]
mov edi, 0x47e098
push edi
mov byte [ebp - 4], 3
call fcn.00401926
mov ecx, eax
call fcn.0041c2d6
xor esi, esi
inc esi
test al, al
je 0x41d2f7
push str.RsrcMgr::extractSfxFromRsrc:
lea ecx, [ebp - 0x4c]
call fcn.0041ee2f
lea ecx, [ebp - 0x30]
push ecx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.0041f062
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 5
call fcn.00401480
push ebx
push esi
lea ecx, [ebp - 0x30]
call fcn.00401537
push ebx
push esi
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 3
call fcn.00401537
push esi
push dword [0x462734]
lea eax, [ebp + 0x1c]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.0040138d
push edi
mov byte [ebp - 4], 6
call fcn.00401926
push eax
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 3
call fcn.0041c3c6
mov byte [ebp - 4], 7
cmp dword [ebp + 0xc8], ebx
jne 0x41d3bf
cmp byte [ebp + 0x74], bl
je 0x41d37b
push str.Error:_SFX_Size_is_0_
lea ecx, [ebp - 0x4c]
call fcn.0041ee2f
lea ecx, [ebp - 0x30]
push ecx
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.0041f062
mov byte [ebp - 4], 9
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp + 0x38]
call fcn.0041c485
push ebx
push esi
lea ecx, [ebp - 0x30]
call fcn.00401537
push ebx
push esi
lea ecx, [ebp - 0x4c]
call fcn.00401537
push 3
pop edi
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 3
call fcn.0041b10c
push ebx
push esi
lea ecx, [ebp + 0x1c]
call fcn.00401537
push ebx
push esi
lea ecx, [ebp]
call fcn.00401537
push ebx
push esi
lea ecx, [ebp + 0x8c]
call fcn.00401537
push ebx
push esi
lea ecx, [ebp + 0xa8]
call fcn.00401537
mov eax, edi
jmp 0x41d783
movzx eax, word [ebp + 0xc4]
push 0xa
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
jne 0x41d44b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp byte [ebp + 0x74], bl
je 0x41d444
push str.Error:_Unable_to_find_resource:_RsrcID
lea ecx, [ebp - 0x4c]
call fcn.0041ee2f
lea ecx, [ebp - 0x30]
push ecx
push edi
push str.__Err_code
push dword [ebp + 0xc4]
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.0041ef64
mov ecx, eax
call fcn.0041ef2a
mov ecx, eax
call fcn.0041f00e
mov ecx, eax
call fcn.0041f062
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp + 0x38]
call fcn.0041c485
push ebx
push esi
lea ecx, [ebp - 0x30]
call fcn.00401537
push ebx
push esi
lea ecx, [ebp - 0x4c]
call fcn.00401537
push 2
jmp 0x41d37d
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
jne 0x41d4ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp byte [ebp + 0x74], bl
je 0x41d444
push str.Error:_Unable_to_load_resource:_RsrcID
lea ecx, [ebp - 0x4c]
call fcn.0041ee2f
lea ecx, [ebp - 0x30]
push ecx
push edi
push str.__Err_code
push dword [ebp + 0xc4]
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.0041ef64
mov ecx, eax
call fcn.0041ef2a
mov ecx, eax
call fcn.0041f00e
mov ecx, eax
call fcn.0041f062
mov byte [ebp - 4], 0xd
jmp 0x41d424
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x41d4f1
cmp byte [ebp + 0x74], bl
je 0x41d444
push str.Error:_Unable_to_lock_resource:_RsrcID
lea ecx, [ebp - 0x4c]
call fcn.0041ee2f
lea ecx, [ebp - 0x30]
push ecx
push dword [ebp + 0xc4]
mov ecx, eax
mov byte [ebp - 4], 0xe
call fcn.0041ef64
mov ecx, eax
call fcn.0041f062
mov byte [ebp - 4], 0xf
jmp 0x41d424
mov eax, dword [ebp + 0xbc]
dec eax
push eax
lea ecx, [ebp + 0xa8]
call fcn.0041cb49
cmp word [eax], 0x5c
je 0x41d51a
push 0x462a20
lea ecx, [ebp + 0xa8]
call fcn.004013bd
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x8c]
push eax
lea ecx, [ebp + 0xa8]
call fcn.00401582
cmp dword [ebp + 0xc0], 8
mov eax, dword [ebp + 0xac]
jae 0x41d544
lea eax, [ebp + 0xac]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41d6e4
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc8]
mov dword [ebp - 0x14], ebx
push dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41d5ea
cmp byte [ebp + 0x74], bl
je 0x41d37b
push str.Error:_Unable_to_open_resource_output_file:_Path
lea ecx, [ebp - 0x4c]
call fcn.0041ee2f
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0xc0], 8
mov edi, dword [ebp + 0xac]
mov byte [ebp - 4], 0x10
jae 0x41d5b3
lea edi, [ebp + 0xac]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x10]
push eax
push str.__error
push edi
call fcn.0041ef2a
mov ecx, eax
call fcn.0041f259
mov ecx, eax
call fcn.0041f00e
mov ecx, eax
call fcn.0041f062
mov byte [ebp - 4], 0x11
jmp 0x41d35b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x41d65e
cmp byte [ebp + 0x74], bl
je 0x41d37b
push str.Error:_Unable_to_close_resource_output_file:_Path
lea ecx, [ebp - 0x4c]
call fcn.0041ee2f
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0xc0], 8
mov edi, dword [ebp + 0xac]
mov byte [ebp - 4], 0x14
jae 0x41d627
lea edi, [ebp + 0xac]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x10]
push eax
push str.__error
push edi
call fcn.0041ef2a
mov ecx, eax
call fcn.0041f259
mov ecx, eax
call fcn.0041f00e
mov ecx, eax
call fcn.0041f062
mov byte [ebp - 4], 0x15
jmp 0x41d35b
cmp byte [ebp + 0x74], bl
je 0x41d6a3
push str.SFX_written_to_file_successfully_
lea ecx, [ebp - 0x4c]
call fcn.0041ee2f
lea ecx, [ebp - 0x30]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x16
call fcn.0041f062
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 0x17
call fcn.0041c485
push ebx
push esi
lea ecx, [ebp - 0x30]
call fcn.00401537
push ebx
push esi
lea ecx, [ebp - 0x4c]
call fcn.00401537
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 3
call fcn.0041b10c
push ebx
push esi
lea ecx, [ebp + 0x1c]
call fcn.00401537
push ebx
push esi
lea ecx, [ebp]
call fcn.00401537
push ebx
push esi
lea ecx, [ebp + 0x8c]
call fcn.00401537
push ebx
push esi
lea ecx, [ebp + 0xa8]
call fcn.00401537
xor eax, eax
jmp 0x41d783
cmp byte [ebp + 0x74], bl
je 0x41d746
push str.Error:_Unable_to_open_resource_output_file:_Path
lea ecx, [ebp - 0x4c]
call fcn.0041ee2f
cmp dword [ebp + 0xc0], 8
mov edx, dword [ebp + 0xac]
mov byte [ebp - 4], 0x12
jae 0x41d70f
lea edx, [ebp + 0xac]
lea ecx, [ebp - 0x30]
push ecx
push edx
mov ecx, eax
call fcn.0041ef2a
mov ecx, eax
call fcn.0041f062
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 0x13
call fcn.0041c485
push ebx
push esi
lea ecx, [ebp - 0x30]
call fcn.00401537
push ebx
push esi
lea ecx, [ebp - 0x4c]
call fcn.00401537
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 3
call fcn.0041b10c
push ebx
push esi
lea ecx, [ebp + 0x1c]
call fcn.00401537
push ebx
push esi
lea ecx, [ebp]
call fcn.00401537
push ebx
push esi
lea ecx, [ebp + 0x8c]
call fcn.00401537
push ebx
push esi
lea ecx, [ebp + 0xa8]
call fcn.00401537
push 3
pop eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x80]
xor ecx, ebp
call fcn.0043f432
add ebp, 0x84
leave
ret 0x40