Function at 0x407080
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 0x3c], ecx
push 5
mov eax, dword [ebp - 0x3c]
movzx ecx, word [eax + 4]
push ecx
mov edx, dword [0x42f694]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x4070b3
mov eax, 2
jmp 0x4072f7
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [0x42f694]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4070d7
mov eax, 2
jmp 0x4072f7
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4070f4
mov eax, 2
jmp 0x4072f7
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 0x18]
and edx, 0xf
mov dword [ebp - 0x40], edx
cmp dword [ebp - 0x40], 1
je 0x40711a
cmp dword [ebp - 0x40], 3
je 0x407131
cmp dword [ebp - 0x40], 4
je 0x407148
jmp 0x40715f
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 2
mov dword [ebp - 8], 1
jmp 0x407174
mov dword [ebp - 0x10], 6
mov dword [ebp - 0xc], 7
mov dword [ebp - 8], 2
jmp 0x407174
mov dword [ebp - 0x10], 6
mov dword [ebp - 0xc], 7
mov dword [ebp - 8], 6
jmp 0x407174
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 1
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x18]
and ecx, 0xf00
mov dword [ebp - 0x44], ecx
cmp dword [ebp - 0x44], 0x100
je 0x407197
cmp dword [ebp - 0x44], 0x200
je 0x40719f
jmp 0x4071a7
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x24], edx
jmp 0x4071ad
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
jmp 0x4071ad
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x28]
add eax, 0x1a
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00407300
add esp, 4
lea edx, [ebp - 0x1c]
push edx
call fcn.00407300
add esp, 4
lea eax, [ebp - 0x1c]
push eax
call fcn.00407300
add esp, 4
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xc]
and edx, 0x40
je 0x40721b
mov eax, dword [ebp - 0x1c]
add eax, 2
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 2
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00407300
add esp, 4
mov dword [ebp - 0x30], 0
jmp 0x40722d
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 0x10]
cmp dword [ebp - 0x30], ecx
jge 0x4072d0
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
xor edx, edx
mov ecx, 4
div ecx
test edx, edx
je 0x407259
mov edx, dword [ebp - 0x1c]
add edx, 2
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
movzx edx, word [ecx + 0x14]
cmp edx, dword [ebp - 0x24]
jne 0x40727a
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 8]
or ecx, 1
mov edx, dword [ebp - 0x34]
mov dword [edx + 8], ecx
mov eax, dword [ebp - 0x1c]
add eax, 0x18
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00407300
add esp, 4
lea edx, [ebp - 0x1c]
push edx
call fcn.00407300
add esp, 4
mov eax, dword [ebp - 0x1c]
mov cx, word [eax]
mov word [ebp - 0x38], cx
mov edx, dword [ebp - 0x1c]
add edx, 2
mov dword [ebp - 0x1c], edx
movzx eax, word [ebp - 0x38]
test eax, eax
je 0x4072cb
movzx ecx, word [ebp - 0x38]
sub ecx, 2
mov word [ebp - 0x38], cx
movzx edx, word [ebp - 0x38]
add edx, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], edx
jmp 0x407224
mov eax, dword [ebp - 0x3c]
push eax
push 0x406cd0
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [0x42f694]
push ecx
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret