Function at 0x414570
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x778], edi
jle 0x4145a5
push 0x124
push 0x588d48
push 0x588d54
call fcn.0043a4ca
cmp eax, 7
je 0x41494f
push edi
lea ecx, [esi + 0x3fc]
push 0x588420
mov dword [esi + 0x770], edi
mov dword [esi + 0x774], edi
mov dword [esi + 0x778], edi
mov dword [esi + 0x77c], edi
call fcn.004042c0
push edi
lea ecx, [esi + 0x440]
push 0x588420
call fcn.004042c0
push edi
lea ecx, [esi + 0x5d8]
push 0x588420
call fcn.004042c0
xor eax, eax
mov dword [esi + 0x5d4], edi
mov dword [esi + 0x76c], edi
mov dword [esi + 0x400], eax
mov dword [esi + 0x404], eax
mov dword [esi + 0x408], eax
mov dword [esi + 0x40c], eax
mov dword [esi + 0x410], eax
mov dword [esi + 0x414], eax
mov dword [esi + 0x418], eax
mov dword [esi + 0x41c], eax
mov dword [esi + 0x420], eax
mov dword [esi + 0x424], eax
mov dword [esi + 0x428], eax
mov dword [esi + 0x42c], eax
mov dword [esi + 0x430], eax
mov dword [esi + 0x434], eax
mov dword [esi + 0x438], eax
mov dword [esi + 0x43c], eax
lea edi, [esi + 0x1a4]
lea eax, [esi + 0x444]
mov dword [esp + 0x10], 0xa
mov ebx, eax
mov dword [esp + 0xc], 0xa
lea esp, [esp]
call fcn.005355f4
cdq
mov ecx, 0x1c
idiv ecx
test edx, edx
jne 0x41469e
mov edx, 0x30
mov word [edi], dx
jmp 0x414734
cmp edx, 1
jne 0x4146ab
lea eax, [edx + 0x30]
jmp 0x414731
lea ecx, [edx - 2]
cmp ecx, 7
ja 0x4146bb
add edx, 0x30
mov word [edi], dx
jmp 0x414734
lea eax, [edx - 0xa]
cmp eax, 7
ja 0x4146cb
add edx, 0x28
mov word [edi], dx
jmp 0x414734
cmp edx, 0x12
je 0x41472c
cmp edx, 0x13
je 0x41472c
cmp edx, 0x14
je 0x414722
cmp edx, 0x15
je 0x414722
cmp edx, 0x16
je 0x414718
cmp edx, 0x17
je 0x414718
cmp edx, 0x18
je 0x414711
cmp edx, 0x19
je 0x414711
cmp edx, 0x1a
jne 0x414702
mov ecx, 0x28
mov word [edi], cx
jmp 0x414734
cmp edx, 0x1b
jne 0x414734
mov edx, 0x29
mov word [edi], dx
jmp 0x414734
mov eax, 0x2f
jmp 0x414731
mov ecx, 0x2a
mov word [edi], cx
jmp 0x414734
mov edx, 0x2d
mov word [edi], dx
jmp 0x414734
mov eax, 0x2b
mov word [edi], ax
movzx ecx, word [edi]
push ecx
call fcn.005350d8
add esp, 4
test eax, eax
je 0x414757
movzx edx, word [edi]
inc dword [esi + edx*4 + 0x340]
lea eax, [esi + edx*4 + 0x340]
jmp 0x4147c4
movzx eax, word [edi]
mov ecx, 0x2b
cmp cx, ax
jne 0x41476c
inc dword [esi + 0x428]
jmp 0x4147c4
mov edx, 0x2d
cmp dx, ax
jne 0x41477e
inc dword [esi + 0x42c]
jmp 0x4147c4
mov ecx, 0x2a
cmp cx, ax
jne 0x414790
inc dword [esi + 0x430]
jmp 0x4147c4
mov edx, 0x2f
cmp dx, ax
jne 0x4147a2
inc dword [esi + 0x434]
jmp 0x4147c4
mov ecx, 0x28
cmp cx, ax
jne 0x4147b4
inc dword [esi + 0x438]
jmp 0x4147c4
mov edx, 0x29
cmp dx, ax
jne 0x4147c4
inc dword [esi + 0x43c]
mov dword [ebx - 0x1d8], 0
mov dword [ebx], 0xffffffff
mov dword [ebx + 0x198], 0xffffffff
add edi, 2
add ebx, 4
dec dword [esp + 0xc]
jne 0x414680
dec dword [esp + 0x10]
mov eax, ebx
jne 0x414672
call fcn.005355f4
cdq
mov ecx, 0x15
idiv ecx
mov dword [esi + 0x118], edx
mov edi, dword [0x5b6a8c]
call fcn.0044271b
mov dword [eax + 0xc], edi
mov eax, dword [esi + 0x98]
xor ecx, ecx
cmp eax, ecx
je 0x41486a
mov dword [esi + 0x98], ecx
mov dword [esi + 0x9c], ecx
mov dword [esi + 0xa0], ecx
mov dword [esi + 0xa4], ecx
mov dword [esi + 0xac], ecx
mov dword [esi + 0xa8], ecx
or ecx, 0xffffffff
push eax
mov dword [esi + 0xb4], ecx
mov dword [esi + 0xb8], ecx
mov word [esi + 0xb0], 0
call dword [sym.imp.gdi32.dll_DeleteObject]
mov eax, dword [esi + 0x118]
mov ecx, dword [0x5b6a8c]
add eax, 0x3e8
movzx edx, ax
push 0x589410
push edx
push ecx
mov dword [esp + 0x1c], ecx
call dword [sym.imp.kernel32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x414922
mov eax, dword [esp + 0x10]
push ebx
push eax
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [esp + 0xc], eax
test eax, eax
je 0x414922
mov ecx, dword [esp + 0x10]
push ebx
push ecx
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [esp + 0x10], eax
test eax, eax
je 0x414922
mov edx, dword [esp + 0xc]
push edx
push 0
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.kernel32.dll_GlobalLock]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push ecx
push edx
push eax
call fcn.00538f30
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push 0
push ebx
mov dword [esp + 0x20], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x414914
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esi + 0x94]
call fcn.00407520
push ebx
call dword [sym.imp.kernel32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.kernel32.dll_GlobalFree]
mov edi, dword [0x5b6a90]
call fcn.0044271b
push 0
push 0x3e8
mov dword [eax + 0xc], edi
mov edx, dword [esi + 0x20]
push 1
push edx
call dword [sym.imp.user32.dll_SetTimer]
push str.101111110
mov ecx, esi
call fcn.004135f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret