Function at 0x40c4a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x748ac8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x8606e0]
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 ecx, dword [ecx + 0x234]
sub esp, 8
call fcn.0040e360
mov dword [ebp - 0x44], eax
test eax, eax
je 0x40c6cd
mov ecx, dword [eax + 4]
add eax, 4
push eax
mov dword [ebp - 0x48], eax
call dword [ecx + 0x98]
xor edx, edx
mov ecx, 0xf0
div ecx
lea ecx, [ebp - 0x58]
mov ebx, edx
mov dword [ebp - 0x4c], ebx
call fcn.004348f5
push str.BACKGROUND_ANIMATION
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 0
call fcn.00434814
push ebx
push str.background_animation_index__d
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0043516e
mov esi, eax
mov ecx, 3
add esp, 0x10
rep lodsd eax, dword [esi]
lea ecx, [ebp - 0x1c]
call fcn.00434a07
lea ecx, [ebp - 0x64]
xor esi, esi
call fcn.00622637
mov edx, eax
mov dword [ebp - 0x2c], 7
xor eax, eax
mov dword [ebp - 0x30], esi
mov word [ebp - 0x40], ax
cmp word [edx], ax
jne 0x40c56e
xor ecx, ecx
jmp 0x40c582
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c573
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.004083b0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.00622637
mov edx, eax
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [edx], ax
jne 0x40c5b7
xor ecx, ecx
jmp 0x40c5cf
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c5c0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004083b0
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40c603
xor bl, bl
jmp 0x40c630
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40c62e
test edi, edi
je 0x40c62e
mov bl, 1
jmp 0x40c630
xor bl, bl
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40c645
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409480
xor eax, eax
mov byte [ebp - 4], 1
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x40c672
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00409480
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
test bl, bl
je 0x40c6ac
push edi
push esi
call fcn.00450b93
mov esi, eax
add esp, 8
test esi, esi
je 0x40c6ac
mov eax, dword [ebp - 0x44]
push 3
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x4c]
inc eax
push eax
mov ecx, dword [edx]
push edx
call dword [ecx + 0x9c]
lea ecx, [ebp - 0x64]
call fcn.00434a07
lea ecx, [ebp - 0x58]
call fcn.00434a07
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.004ccd8f
mov esp, ebp
pop ebp
ret