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

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x4755d0]
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.00448090
add esp, 0xc
test esi, esi
je 0x410e1c
cmp byte [esi], 0
je 0x410e1c
push esi
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x410e30
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 0x410e44
cmp dword [ebp + 0xb4], esi
jle 0x410e44
mov byte [edi], 0
cmp ebx, esi
je 0x410e4b
mov byte [ebx], 0
cmp byte [ebp - 0x6c], 0
je 0x410e60
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x74], eax
jmp 0x410e63
mov dword [ebp - 0x74], esi
cmp dword [ebp - 0x74], esi
jne 0x410ebb
cmp ebx, esi
je 0x410eb4
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 0x410eaf
mov cl, byte [ebx + eax]
cmp cl, 0x20
je 0x410eab
cmp cl, 9
je 0x410eab
cmp cl, 0xd
je 0x410eab
cmp cl, 0xa
jne 0x410eb4
mov byte [ebx + eax], 0
dec eax
cmp eax, esi
jg 0x410e94
xor eax, eax
jmp 0x41110b
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 0x410f30
test ebx, ebx
je 0x4110ff
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 0x410f26
mov cl, byte [ebx + eax]
cmp cl, 0x20
je 0x410f22
cmp cl, 9
je 0x410f22
cmp cl, 0xd
je 0x410f22
cmp cl, 0xa
jne 0x4110ff
mov byte [ebx + eax], 0
dec eax
test eax, eax
jg 0x410f07
jmp 0x4110ff
push esi
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x80], eax
test eax, eax
jne 0x410f9b
test ebx, ebx
je 0x4110ff
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 0x410f91
mov cl, byte [ebx + eax]
cmp cl, 0x20
je 0x410f8d
cmp cl, 9
je 0x410f8d
cmp cl, 0xd
je 0x410f8d
cmp cl, 0xa
jne 0x4110ff
mov byte [ebx + eax], 0
dec eax
test eax, eax
jg 0x410f72
jmp 0x4110ff
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x78], eax
test eax, eax
jne 0x411003
test ebx, ebx
je 0x4110f6
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 0x410ff9
mov cl, byte [ebx + eax]
cmp cl, 0x20
je 0x410ff5
cmp cl, 9
je 0x410ff5
cmp cl, 0xd
je 0x410ff5
cmp cl, 0xa
jne 0x4110f6
mov byte [ebx + eax], 0
dec eax
test eax, eax
jg 0x410fda
jmp 0x4110f6
push esi
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x70], eax
test edi, edi
je 0x411046
mov esi, dword [ebp + 0xb4]
mov ecx, esi
cmp esi, eax
jb 0x411022
mov ecx, eax
test ecx, ecx
je 0x41103c
cmp esi, eax
jae 0x41102c
mov eax, esi
push eax
push dword [ebp - 0x78]
push edi
call fcn.00447af0
mov eax, dword [ebp - 0x70]
add esp, 0xc
cmp esi, eax
jae 0x411042
mov eax, esi
mov byte [eax + edi], 0
xor eax, eax
cmp dword [ebp - 0x7c], eax
je 0x4110f6
push eax
push 0x80
push 4
push eax
push 3
push 0xc0000000
push dword [ebp - 0x7c]
call fcn.00410914
mov edi, eax
cmp edi, 0xffffffff
jne 0x4110c3
xor esi, esi
cmp ebx, esi
je 0x4110be
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 0x4110b9
mov cl, byte [ebx + eax]
cmp cl, 0x20
je 0x4110b5
cmp cl, 9
je 0x4110b5
cmp cl, 0xd
je 0x4110b5
cmp cl, 0xa
jne 0x4110be
mov byte [ebx + eax], 0
dec eax
cmp eax, esi
jg 0x41109e
mov dword [ebp - 0x70], esi
jmp 0x4110f6
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 0x4110f6
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.00448080
add ebp, 0x9c
leave
ret 0x18