Function at 0x4012ec
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
invalid
push ebp
mov ebp, esp
add esp, 0xfffffce4
push ebx
push esi
push edi
mov edi, 0x4533f0
mov ebx, dword [ebp + 0xc]
push 0x2349
push 0x68
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_FindResourceA
mov esi, eax
test esi, esi
jne 0x40131d
xor eax, eax
jmp 0x401616
push esi
mov edx, dword [ebp + 8]
push edx
call sub.KERNEL32.DLL_LoadResource
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401337
xor eax, eax
jmp 0x401616
je 0x40133c
jne 0x40133c
jmp 0x4012c8
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.DLL_LockResource
mov dword [0x44f378], eax
cmp dword [0x44f378], 0
jne 0x40135a
xor eax, eax
jmp 0x401616
push esi
mov edx, dword [ebp + 8]
push edx
call sub.KERNEL32.DLL_SizeofResource
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
push 0x1c4
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
sub edx, 0x1c4
add edx, dword [0x44f378]
push edx
push ebx
call fcn.0040566c
add esp, 0xc
mov ecx, sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 8], ecx
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x40140f
mov eax, 0x40e7c4
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x40140f
mov edx, sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x10], edx
mov esi, dword [ebp - 0x10]
mov al, byte [esi]
cmp al, 0xcc
je 0x40140f
mov ecx, sub.KERNEL32.DLL_FindResourceA
mov dword [ebp - 0x14], ecx
mov esi, dword [ebp - 0x14]
mov al, byte [esi]
cmp al, 0xcc
je 0x40140f
mov eax, sub.KERNEL32.DLL_LoadResource
mov dword [ebp - 0x18], eax
mov esi, dword [ebp - 0x18]
mov al, byte [esi]
cmp al, 0xcc
je 0x40140f
push edi
lea edi, [ebp - 0x218]
mov esi, 0x44f37c
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop edi
lea eax, [ebp - 0x218]
push 0x120
push eax
lea edx, [ebx + 0xa4]
push 0x64
push edx
call fcn.00403918
add esp, 0x10
xor esi, esi
push 0x1c4
push ebx
lea eax, [ebp - 0x1f8]
push eax
call fcn.0040566c
add esp, 0xc
push 0x1c4
lea edx, [ebp - 0x1f8]
push edx
push ebx
call fcn.0040566c
add esp, 0xc
push 0xffffffffffffffff
mov ecx, dword [edi]
push ecx
call sub.KERNEL32.DLL_WaitForSingleObject
lea eax, [ebp - 0x31c]
push eax
mov edx, dword [ebx + 0x1bc]
push edx
mov ecx, dword [ebx + 0x1c0]
push ecx
push esi
call fcn.0040cd98
test eax, eax
je 0x4014ad
push 0
push 1
mov eax, dword [edi]
push eax
call sub.KERNEL32.DLL_ReleaseSemaphore
push 0x10
lea edx, [ebx + 0xa4]
push edx
add ebx, 0xb8
push ebx
push 0
call sub.USER32.DLL_MessageBoxA
call sub.KERNEL32.DLL_GetCurrentProcessId
push eax
push 0
push 1
call sub.KERNEL32.DLL_OpenProcess
mov ebx, eax
push 0
push ebx
call sub.KERNEL32.DLL_TerminateProcess
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x401616
push 0
push 1
mov edx, dword [edi]
push edx
call sub.KERNEL32.DLL_ReleaseSemaphore
lea ecx, [ebp - 0x31c]
lea eax, [ebx + 0x98]
push ecx
push 0xc
push eax
call fcn.00403860
add esp, 0xc
test eax, eax
jne 0x4014dc
xor eax, eax
jmp 0x401616
lea edx, [ebp - 0x31c]
push edx
push 0x98
push ebx
call fcn.00403860
add esp, 0xc
test eax, eax
jne 0x4014fc
xor eax, eax
jmp 0x401616
mov edx, dword [ebx + 0x98]
lea ecx, [ebp - 0x24]
push edx
push 0x44f420
push ecx
call sub.USER32.DLL_wsprintfA
add esp, 0xc
mov eax, dword [ebx + 0x9c]
push eax
push 0x44f423
lea edx, [ebp - 0x30]
push edx
call sub.USER32.DLL_wsprintfA
add esp, 0xc
lea ecx, [ebp - 0x31c]
lea eax, [ebp - 0x30]
lea edx, [ebp - 0x24]
push ecx
push 0
push eax
push edx
xor ecx, ecx
xor eax, eax
mov cl, byte [ebx + 0xa1]
push ecx
mov al, byte [ebx + 0xa2]
push eax
call fcn.004029f8
add esp, 0x18
test eax, eax
jne 0x401561
inc esi
jmp 0x401426
cmp byte [ebx + 9], 0
je 0x401581
lea edx, [ebp - 0x31c]
push edx
push ebx
call fcn.00401260
add esp, 8
test eax, eax
jne 0x401581
inc esi
jmp 0x401426
push 0xffffffffffffffff
mov ecx, dword [edi]
push ecx
call sub.KERNEL32.DLL_WaitForSingleObject
lea eax, [ebp - 0x31c]
lea edx, [ebp - 0x30]
push eax
push edx
lea ecx, [ebp - 0x24]
lea eax, [ebp - 0x31]
push ecx
push 0
push eax
call fcn.0040cce0
test eax, eax
jne 0x4015cc
push 0
push 1
mov edx, dword [edi]
push edx
call sub.KERNEL32.DLL_ReleaseSemaphore
lea ecx, [ebp - 0x31c]
push ecx
mov eax, dword [ebp + 0x10]
push eax
call sub.KERNEL32.DLL_lstrcpyA
mov eax, 1
jmp 0x401616
push 0
push 1
mov edx, dword [edi]
push edx
call sub.KERNEL32.DLL_ReleaseSemaphore
inc esi
jmp 0x401426
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret