Function at 0x4044a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x46eb60
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4a3dc0]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edx, dword [ebp + 0x414]
mov eax, dword [ebp + 0x410]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0x418]
xor edi, edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
xor ebx, ebx
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp], ebx
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x4045b8
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cdq
mov esi, eax
shld edx, esi, 1
add esi, esi
mov eax, esi
add eax, 0x80000000
adc edx, ebx
mov dword [ebp - 0x2c], edx
jne 0x4045b0
cmp eax, 0xffffffff
ja 0x4045b0
cmp esi, 0x400
jg 0x40455d
push esi
call fcn.00401f60
add esp, 4
test al, al
je 0x40455d
mov eax, esi
call fcn.00454340
mov dword [ebp - 0x10], esp
mov ebx, esp
jmp 0x404581
or eax, 0xffffffff
sub eax, esi
cmp eax, 8
jb 0x4045a6
lea eax, [esi + 8]
push eax
call fcn.00453e86
add esp, 4
cmp eax, ebx
je 0x4045b0
mov edi, eax
mov dword [eax], ebx
mov dword [ebp - 0x20], edi
lea ebx, [eax + 8]
test ebx, ebx
je 0x4045b0
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push esi
push ebx
push 0xffffffffffffffff
push ecx
push 0
push 3
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, ebx
jmp 0x4045b2
push 0x80070216
call fcn.00401350
xor eax, eax
xor ebx, ebx
cmp eax, ebx
jne 0x4045e9
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x4045c8
lea ecx, [ebp]
call fcn.00401ef0
cmp edi, ebx
je 0x4045df
lea esp, [esp]
push edi
mov edi, dword [edi]
call fcn.00453f1a
add esp, 4
cmp edi, ebx
jne 0x4045d0
mov eax, 0x8007000e
jmp 0x4046e9
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
jne 0x404608
call fcn.004014f0
mov esi, eax
jmp 0x4046c4
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x404627
call fcn.004014f0
jmp 0x4046bb
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x40463d
call fcn.004014f0
jmp 0x4046bb
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x14], esi
cmp eax, esi
jae 0x404658
mov esi, 0x8007000e
jmp 0x4046bd
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.004028a0
mov dword [ebp - 4], 1
jmp 0x404684
mov eax, dword [ebp]
test eax, eax
jne 0x404692
mov esi, 0x8007000e
jmp 0x4046bd
mov edx, dword [ebp - 0x18]
push esi
push edx
push esi
push eax
call fcn.00401370
mov eax, dword [ebp]
mov ecx, dword [ebp + 0x41c]
add esp, 0x10
mov byte [eax + esi], 0
mov edx, dword [ebp]
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00403f30
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x4046d4
lea ecx, [ebp]
call fcn.00401ef0
test edi, edi
je 0x4046e7
push edi
mov edi, dword [edi]
call fcn.00453f1a
add esp, 4
test edi, edi
jne 0x4046d8
mov eax, esi
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.0045407e
lea esp, [ebp + 0x408]
pop ebp
ret 0x10