Function at 0x40a369
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push esi
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x40a3ee
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax]
test eax, eax
je 0x40a39e
push 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x40a3e9
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x40a3cc
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 2
jge 0x40a3e9
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x44]
call fcn.00442139
mov dword [eax], 0xfffffffe
jmp 0x40a3c1
jmp 0x40a5cf
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x4c], eax
lea eax, [ebp + 0x24]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x48]
movzx eax, byte [eax]
test eax, eax
je 0x40a5c7
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [eax], 0
jmp 0x40a44e
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0xffffffea
jg 0x40a5c5
mov dword [ebp - 4], 0x6ce4a6f4
mov dword [ebp - 0x10], 0
cmp dword [ebp - 4], 0
je 0x40a51e
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
je 0x40a51e
push 0
mov ecx, dword [ebp - 0x18]
call fcn.00442139
push 0
mov ecx, dword [ebp - 0x14]
call fcn.00442139
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x10], eax
jl 0x40a4a8
mov dword [ebp - 0x1c], 1
jmp 0x40a4ac
and dword [ebp - 0x1c], 0
cmp dword [ebp - 0x1c], 0xf2d6273
jl 0x40a4be
mov dword [ebp - 0x20], 1
jmp 0x40a4c2
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x20], eax
jle 0x40a4d3
mov dword [ebp - 0x24], 1
jmp 0x40a4d7
and dword [ebp - 0x24], 0
push 0
mov ecx, dword [ebp - 0x14]
call fcn.00442139
mov eax, dword [eax]
cmp eax, dword [ebp - 0x24]
jg 0x40a4f1
mov dword [ebp - 0x28], 1
jmp 0x40a4f5
and dword [ebp - 0x28], 0
push 0
mov ecx, dword [ebp - 0x18]
call fcn.00442139
mov esi, dword [ebp - 0x28]
sub esi, dword [eax]
push 0
mov ecx, dword [ebp - 0x18]
call fcn.00442139
imul esi, dword [eax]
test esi, esi
je 0x40a51e
mov dword [ebp - 0x64], 1
jmp 0x40a522
and dword [ebp - 0x64], 0
mov eax, 0x28ab
test eax, eax
jne 0x40a537
cmp dword [ebp - 4], 0
jne 0x40a537
and dword [ebp - 0x2c], 0
jmp 0x40a53e
mov dword [ebp - 0x2c], 1
push 0
mov ecx, dword [ebp - 0x14]
call fcn.00442139
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
mov dword [ebp - 4], 0
jmp 0x40a55d
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 7
jg 0x40a5c0
mov dword [ebp - 0x68], 0xffffffff
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x23ce
call fcn.004025ef
add esp, 0x10
cmp dword [ebp - 4], 0
je 0x40a58f
cmp dword [ebp - 0x68], 0
je 0x40a58d
jmp 0x40a5c0
jmp 0x40a5be
push 0
push 0x4842
lea eax, [ebp - 0x10]
push eax
push 0x1ba5
push dword [ebp - 0x14]
push 0x2e9a
push 0x3878
push 0x60b8
push 0x703a
call fcn.00409378
add esp, 0x24
jmp 0x40a556
jmp 0x40a443
jmp 0x40a5cf
push 0
call dword [sym.imp.KERNEL32.dll_LockResource]
pop esi
mov esp, ebp
pop ebp
ret