Function at 0x412390
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b4c1
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x45fc48]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
push 0x104
push ebx
push esi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x7c], ebx
call fcn.00413480
sub esp, 0xc
mov eax, esp
push ebx
push eax
call fcn.0040a3b0
add esp, 8
call fcn.00413260
add esp, 0x18
test al, al
jne 0x412562
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx ecx, word [ebp + 8]
push 0x100
mov ebx, eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov dword [ebp - 0x80], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, dword [ebp - 0x7c]
sub esp, 0x18
mov ecx, esp
push ebx
mov dword [ebp - 0x74], eax
call fcn.00401690
lea eax, [ebp - 0x58]
push eax
call fcn.0040a420
mov edi, eax
push dword [ebp - 0x78]
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 4], 0
call fcn.0040a3b0
push eax
lea eax, [ebp - 0x28]
push str.Copying
push eax
mov byte [ebp - 4], 1
call fcn.0040f780
add esp, 0x30
mov esi, eax
lea ecx, [ebp - 0x1ec]
mov byte [ebp - 4], 2
call fcn.00406850
push edi
push str._to
push esi
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.004080c0
push eax
call fcn.004035c0
add esp, 8
push eax
call fcn.004038b0
add esp, 8
push eax
call fcn.004035c0
add esp, 8
lea ecx, [ebp - 0x1ec]
mov byte [ebp - 4], 2
call fcn.00406ba0
cmp dword [ebp - 0x14], 0x10
jb 0x4124d1
push dword [ebp - 0x28]
call fcn.00418b1b
add esp, 4
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x4124f4
push dword [ebp - 0x40]
call fcn.00418b1b
add esp, 4
cmp dword [ebp - 0x44], 0x10
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
jb 0x41251e
push dword [ebp - 0x58]
call fcn.00418b1b
add esp, 4
push 1
push 0x40
push 0x20
push ebx
lea ecx, [ebp - 0x12c]
call fcn.00410030
push 0
push dword [ebp - 0x80]
lea ecx, [ebp - 0x12c]
push dword [ebp - 0x74]
mov dword [ebp - 4], 4
call fcn.00414db0
lea ecx, [ebp - 0x12c]
call fcn.00407ff0
lea ecx, [ebp - 0x12c]
call fcn.00407260
jmp 0x4125d4
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.0040a3b0
add esp, 8
mov esi, eax
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 4], 5
call fcn.00406850
push str._because_it_already_exists
push esi
push str.Not_copying
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.004080c0
push eax
call fcn.004038b0
add esp, 8
push eax
call fcn.004035c0
add esp, 8
push eax
call fcn.004038b0
add esp, 8
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 5
call fcn.00406ba0
cmp dword [ebp - 0x5c], 0x10
jb 0x4125d4
push dword [ebp - 0x70]
call fcn.00418b1b
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004192a9
mov esp, ebp
pop ebp
ret