Function at 0x406280
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x404
lea ebp, [esp - 4]
mov eax, dword [0x421280]
xor eax, ebp
mov dword [ebp + 0x404], eax
push 0x20
mov eax, 0x418b7c
call fcn.00413897
mov edx, dword [ebp + 0x414]
xor ebx, ebx
mov eax, dword [ebp + 0x410]
mov esi, ebx
mov dword [ebp - 0x24], edx
mov edx, dword [ebp + 0x418]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ebx
mov dword [ebp], ebx
mov byte [ebp - 4], 1
test eax, eax
je 0x406477
mov edx, eax
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, bx
jne 0x4062e3
sub edx, ecx
sar edx, 1
inc edx
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], edx
call fcn.0040513f
pop ecx
test eax, eax
js 0x406477
mov edi, dword [ebp - 0x18]
cmp edi, 0x400
jg 0x40632c
mov ecx, edi
call fcn.0040519f
test al, al
je 0x40632c
mov eax, edi
call fcn.004147a0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x406338
push edi
lea ecx, [ebp - 0x20]
call fcn.00405206
mov esi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
mov ecx, eax
push 3
push edi
call fcn.00404b6b
mov dword [ebp - 0x14], eax
test eax, eax
je 0x406474
push 0x60
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
jne 0x406384
push 2
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x18], eax
test edi, edi
jne 0x406384
call fcn.00404aa9
mov ebx, eax
jmp 0x406451
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x4063a2
call fcn.00404aa9
jmp 0x406444
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x406398
push dword [ebp - 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
lea ecx, [eax + 1]
cmp ecx, eax
jae 0x4063cc
mov ebx, 0x8007000e
jmp 0x406446
mov byte [ebp - 4], 2
call fcn.00405241
cmp eax, 0x400
jbe 0x4063e7
push eax
lea ecx, [ebp]
call fcn.00404ac0
jmp 0x4063ed
lea eax, [ebp + 4]
mov dword [ebp], eax
mov dword [ebp - 4], 1
jmp 0x40640b
cmp dword [ebp], 0
je 0x4063c5
mov eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
push eax
push dword [ebp]
call fcn.00406bd7
push eax
call fcn.004030c2
mov eax, dword [ebp]
add esp, 0x14
mov ecx, dword [ebp - 0x14]
push dword [ebp + 0x41c]
mov byte [eax + ecx], bl
lea ecx, [ebp - 0x2c]
push dword [ebp]
call fcn.0040613b
mov ebx, eax
test edi, edi
je 0x406451
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x40646c
lea ecx, [ebp]
call fcn.00404a94
jmp 0x40646c
push esi
mov esi, dword [esi]
call fcn.00407414
pop ecx
test esi, esi
jne 0x406463
mov eax, ebx
jmp 0x40649a
mov ebx, dword [ebp]
lea eax, [ebp + 4]
cmp ebx, eax
je 0x406491
lea ecx, [ebp]
call fcn.00404a94
jmp 0x406491
push esi
mov esi, dword [esi]
call fcn.00407414
pop ecx
test esi, esi
jne 0x406488
mov eax, 0x8007000e
lea esp, [ebp - 0x3c]
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.00406a2f
lea esp, [ebp + 0x408]
pop ebp
ret 0x10