Function at 0x413ae0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x4351f0]
xor eax, esp
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
push ebx
push 0xffffffffffffffeb
push eax
mov dword [esp + 0x24], ebx
mov dword [ebx + 4], eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
lea eax, [esp + 0x6c]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x413dd5
movzx ecx, word [ebx + 0xc]
push 5
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x413dd5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0x34], eax
test eax, eax
je 0x413dd5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
mov dword [esp + 0x2c], ecx
test ecx, ecx
je 0x413dcb
movsx eax, word [ecx + 0x12]
movsx esi, word [ecx + 0x16]
movsx edi, word [ecx + 0x14]
add esi, eax
movsx ebx, word [ecx + 0x18]
push 0
cdq
add ebx, edi
push 3
push edx
push eax
call fcn.00420770
push 0
push 2
push edx
push eax
call fcn.004255e0
mov dword [esp + 0xc], eax
mov eax, esi
xor esi, esi
cdq
push esi
push 3
push edx
push eax
call fcn.00420770
push esi
push 2
push edx
push eax
call fcn.004255e0
mov dword [esp + 0x10], eax
mov eax, edi
push esi
cdq
push 0xd
push edx
push eax
call fcn.00420770
push esi
push 8
push edx
push eax
call fcn.004255e0
mov esi, eax
mov eax, ebx
push 0
cdq
push 0xd
push edx
push eax
call fcn.00420770
push 0
push 8
push edx
push eax
call fcn.004255e0
mov edi, dword [esp + 0x70]
mov ebx, eax
mov ecx, dword [esp + 0x6c]
mov eax, edi
sub eax, dword [esp + 0x78]
sub eax, esi
add eax, ebx
cdq
sub eax, edx
sar eax, 1
sub edi, eax
mov eax, ecx
sub eax, dword [esp + 0x74]
sub eax, dword [esp + 0xc]
add eax, dword [esp + 0x10]
cdq
sub eax, edx
mov dword [esp + 0x14], edi
mov edx, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
mov eax, ecx
sub eax, dword [esp + 0xc]
add edx, eax
mov eax, edi
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x18]
sub eax, esi
add ebx, eax
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x14]
lea esi, [esp + 0x1c]
mov dword [esp + 0x28], ebx
sub edx, ecx
mov dword [esp + 0x1c], ecx
lea edi, [edi + 0x18]
push 0x14
movsd dword es:[edi], dword [esi]
sub ebx, eax
push ebx
mov ebx, dword [esp + 0x20]
push edx
movsd dword es:[edi], dword [esi]
push eax
push ecx
push 0
push dword [ebx + 4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea esi, [esp + 0x1c]
lea edi, [esp + 0x6c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x2c]
mov ecx, esi
call fcn.004141be
and dword [esp + 0x14], 0
mov edi, eax
xor eax, eax
jmp 0x413dbd
push dword [edi + 0x14]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [esp + 0x10], eax
test eax, eax
je 0x413dab
movsx eax, word [edi + 0xc]
movsx esi, word [edi + 0x10]
mov ecx, dword [esp + 0xc]
add esi, eax
movsx edi, word [edi + 0xe]
push 0
cdq
movsx ebx, word [ecx + 0x12]
push 3
push edx
push eax
add ebx, edi
call fcn.00420770
push 0
push 2
push edx
push eax
call fcn.004255e0
mov dword [esp + 0x1c], eax
mov eax, esi
xor esi, esi
cdq
push esi
push 3
push edx
push eax
call fcn.00420770
push esi
push 2
push edx
push eax
call fcn.004255e0
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], eax
mov eax, edi
push esi
cdq
push 0xd
push edx
push eax
call fcn.00420770
push esi
push 8
push edx
push eax
call fcn.004255e0
mov dword [esp + 0x20], eax
mov eax, ebx
push esi
cdq
push 0xd
push edx
push eax
call fcn.00420770
push esi
push 8
push edx
push eax
call fcn.004255e0
mov ebx, eax
lea esi, [esp + 0x1c]
mov eax, dword [esp + 0x10]
lea edi, [esp + 0x38]
mov dword [esp + 0x28], ebx
movsd dword es:[edi], dword [esi]
push 5
pop ecx
mov dword [esp + 0x54], eax
movsd dword es:[edi], dword [esi]
movzx eax, byte [0x43746b]
push eax
lea eax, [esp + 0x58]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [esp + 0x54]
movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x40]
mov dword [esp + 0x50], 0x60
lea edi, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
push ecx
mov ecx, dword [esp + 0x24]
push eax
lea ecx, [ecx + 0x28]
call fcn.0040f31d
mov eax, dword [esp + 0x20]
sub ebx, eax
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
push 0x14
push ebx
sub ecx, edx
push ecx
push eax
push edx
push 0
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x2c]
mov ecx, edi
call fcn.00414235
mov edi, eax
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], edi
cmp ax, word [esi + 0x10]
jb 0x413c91
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0
push ecx
mov ecx, dword [ebx + 4]
call fcn.004140b4
pop ecx
push eax
mov ecx, ebx
call fcn.0040ea5a
mov ecx, dword [esp + 0x7c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041453f
mov esp, ebp
pop ebp
ret 4