Function at 0x10004510
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x404
lea ebp, [esp - 4]
mov eax, dword [0x1003a560]
xor eax, ebp
mov dword [ebp + 0x404], eax
push 0x24
mov eax, 0x10027043
call fcn.1000f720
mov edi, ecx
mov eax, dword [ebp + 0x414]
mov esi, dword [ebp + 0x410]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x1c], eax
call dword [0x1003a504]
xor ebx, ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], ebx
mov dword [ebp], ebx
cmp esi, ebx
mov byte [ebp - 4], 1
je 0x100045ca
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.10001045
add esp, 0xc
test eax, eax
jl 0x100045ca
mov edi, dword [ebp - 0x20]
cmp edi, 0x400
jg 0x100045b2
push edi
call fcn.100016c7
test al, al
pop ecx
je 0x100045b2
mov eax, edi
call fcn.1000ec30
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x100045bb
push edi
lea ecx, [ebp - 0x24]
call fcn.10001876
push dword [ebp - 0x14]
push edi
push esi
push eax
call fcn.10001102
cmp eax, ebx
jne 0x1000460f
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x100045da
lea ecx, [ebp]
call fcn.100023c1
lea ecx, [ebp - 0x24]
call fcn.1000150e
mov eax, 0x8007000e
lea esp, [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.1000f1e0
add ebp, 0x408
leave
ret 0x10
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x20], edi
jne 0x10004655
push esi
push str.Failed_to_LoadLibrary_on__s_n
push ebx
push dword [0x1003b65c]
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], str.R:_toolsmsvc8VC_atlmfcinclude_statreg.h
mov dword [ebp - 0x14], 0x188
call fcn.100011c4
add esp, 0x14
call fcn.10001328
mov esi, eax
jmp 0x10004784
push dword [ebp - 0x1c]
push dword [ebp - 0x28]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x100046af
mov eax, dword [ebp - 0x28]
shr eax, 0x10
test ax, ax
mov eax, str.Failed_to_FindResource_on_ID:_d_TYPE:_s_n
je 0x1000467d
mov eax, str.Failed_to_FindResource_on_ID:_s_TYPE:_s_n
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], str.R:_toolsmsvc8VC_atlmfcinclude_statreg.h
push dword [ebp - 0x28]
mov dword [ebp - 0x14], 0x191
push eax
push ebx
push dword [0x1003b65c]
lea eax, [ebp - 0x18]
push eax
call fcn.100011c4
add esp, 0x18
call fcn.10001328
jmp 0x10004779
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
jne 0x100046e6
push str.Failed_to_LoadResource_n
push ebx
push dword [0x1003b65c]
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], str.R:_toolsmsvc8VC_atlmfcinclude_statreg.h
mov dword [ebp - 0x14], 0x19c
call fcn.100011c4
add esp, 0x10
jmp 0x100046a5
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
mov dword [ebp - 0x14], esi
jae 0x1000471e
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x1000470a
lea ecx, [ebp]
call fcn.100023c1
mov esi, 0x8007000e
lea ecx, [ebp - 0x24]
call fcn.1000150e
mov eax, esi
jmp 0x100045e7
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.100033e4
mov dword [ebp - 4], 1
jmp 0x10004746
cmp dword [ebp], ebx
jne 0x10004752
mov esi, 0x8007000e
jmp 0x1000477b
push esi
push dword [ebp - 0x1c]
push esi
push dword [ebp]
call fcn.100019cb
mov eax, dword [ebp]
add esp, 0x10
push dword [ebp + 0x41c]
mov byte [eax + esi], bl
push dword [ebp]
lea ecx, [ebp - 0x30]
call fcn.10004316
mov esi, eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x1000470f
lea ecx, [ebp]
call fcn.100023c1
jmp 0x1000470f