Function at 0x403ded
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x41a00c]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
push ebx
push 0xffffffffffffffeb
push eax
mov dword [esp + 0x20], ebx
mov dword [ebx + 4], eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
lea eax, [esp + 0x3c]
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 0x40403c
movzx ecx, word [ebx + 0xc]
push 5
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40403c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0x28], eax
test eax, eax
je 0x40403c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x404032
movsx eax, word [ecx + 0x12]
movsx esi, word [ecx + 0x16]
movsx edi, word [ecx + 0x14]
add esi, eax
movsx ebx, word [ecx + 0x18]
push 3
pop ecx
imul ecx
push 0
push 2
push edx
push eax
add ebx, edi
call fcn.00411a20
push 3
pop ecx
mov dword [esp + 0xc], eax
mov eax, esi
imul ecx
xor esi, esi
push esi
push 2
push edx
push eax
call fcn.00411a20
push 0xd
pop ecx
mov dword [esp + 0x10], eax
mov eax, edi
imul ecx
push esi
push 8
push edx
push eax
call fcn.00411a20
push 0xd
pop ecx
mov edi, eax
mov eax, ebx
imul ecx
push esi
push 8
push edx
push eax
call fcn.00411a20
mov ebx, dword [esp + 0x40]
mov esi, eax
mov ecx, dword [esp + 0x3c]
mov eax, ebx
sub eax, dword [esp + 0x48]
sub eax, edi
add eax, esi
cdq
sub eax, edx
sar eax, 1
sub ebx, eax
mov eax, ecx
sub eax, dword [esp + 0x44]
sub eax, dword [esp + 0xc]
add eax, dword [esp + 0x10]
cdq
sub eax, edx
mov dword [esp + 0x30], ebx
mov edx, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
mov eax, ecx
mov dword [esp + 0x2c], ecx
sub eax, dword [esp + 0xc]
add edx, eax
mov eax, ebx
sub eax, edi
mov dword [esp + 0x34], edx
add esi, eax
push 0x14
mov dword [esp + 0x3c], esi
sub esi, ebx
push esi
sub edx, ecx
push edx
push ebx
mov ebx, dword [esp + 0x24]
push ecx
push 0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea esi, [esp + 0x2c]
lea edi, [esp + 0x3c]
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 + 0x18]
mov ecx, esi
call fcn.00405bfc
and dword [esp + 0x10], 0
mov edi, eax
xor eax, eax
jmp 0x404024
push dword [edi + 0x14]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [esp + 0x24], eax
test eax, eax
je 0x404012
movsx eax, word [edi + 0xc]
movsx esi, word [edi + 0x10]
mov ecx, dword [esp + 0xc]
add esi, eax
movsx edi, word [edi + 0xe]
push 3
pop ebx
movsx ecx, word [ecx + 0x12]
imul ebx
push 0
push 2
push edx
add ecx, edi
push eax
mov dword [esp + 0x2c], ecx
call fcn.00411a20
mov dword [esp + 0x20], eax
mov eax, esi
imul ebx
push 0
push 2
push edx
push eax
call fcn.00411a20
push 0xd
pop ecx
mov ebx, eax
mov eax, edi
imul ecx
xor edi, edi
push edi
push 8
push edx
push eax
call fcn.00411a20
push 0xd
pop ecx
mov esi, eax
mov eax, dword [esp + 0x1c]
imul ecx
push edi
push 8
push edx
push eax
call fcn.00411a20
push 0x14
sub eax, esi
push eax
mov eax, dword [esp + 0x28]
sub ebx, eax
push ebx
push esi
push eax
push edi
push dword [esp + 0x3c]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x18]
mov ecx, edi
call fcn.00405c76
mov edi, eax
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
cmp ax, word [esi + 0x10]
jb 0x403f6c
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov esi, dword [ebx]
push 0
push ecx
mov ecx, dword [ebx + 4]
call fcn.00405aef
pop ecx
push eax
mov ecx, ebx
call dword [esi + 0x2c]
mov ecx, dword [esp + 0x4c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00405e40
mov esp, ebp
pop ebp
ret 4