Function at 0x405400
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x410250
push 0x40a824
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffe80
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
cmp dword [0x41dbbc], 0
je 0x405442
invalid
push 0x41d4e8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x41dbc0], eax
push 0x2346
push 0x68
mov eax, dword [0x41dbc0]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
jne 0x40546b
xor eax, eax
jmp 0x4058ff
mov ecx, dword [ebp - 0x150]
push ecx
mov edx, dword [0x41dbc0]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x40548f
xor eax, eax
jmp 0x4058ff
je 0x405494
jne 0x405494
jmp 0x405420
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [0x41dbb8], eax
cmp dword [0x41dbb8], 0
jne 0x4054b3
xor eax, eax
jmp 0x4058ff
mov ecx, dword [ebp - 0x150]
push ecx
mov edx, dword [0x41dbc0]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push 0x1d0
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [0x41dbb8]
lea edx, [ecx + eax - 0x1d0]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00409d90
add esp, 0xc
push 0x1d0
mov ecx, dword [ebp + 8]
push ecx
push 0x41d708
call fcn.00409d90
add esp, 0xc
mov edx, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x16c], edx
mov esi, dword [ebp - 0x16c]
mov al, byte [esi]
cmp al, 0xcc
je 0x40562d
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x17c], eax
mov esi, dword [ebp - 0x17c]
mov al, byte [esi]
cmp al, 0xcc
je 0x40562d
mov ecx, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x174], ecx
mov esi, dword [ebp - 0x174]
mov al, byte [esi]
cmp al, 0xcc
je 0x40562d
mov edx, dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x178], edx
mov esi, dword [ebp - 0x178]
mov al, byte [esi]
cmp al, 0xcc
je 0x40562d
mov eax, dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x170], eax
mov esi, dword [ebp - 0x170]
mov al, byte [esi]
cmp al, 0xcc
je 0x40562d
mov byte [ebp - 0x38], 4
mov byte [ebp - 0x37], 8
mov byte [ebp - 0x36], 0
mov byte [ebp - 0x35], 0
mov byte [ebp - 0x34], 0xc8
mov byte [ebp - 0x33], 0
mov byte [ebp - 0x32], 0
mov byte [ebp - 0x31], 0
mov byte [ebp - 0x30], 0x18
mov byte [ebp - 0x2f], 0x61
mov byte [ebp - 0x2e], 0xe
mov byte [ebp - 0x2d], 0
mov byte [ebp - 0x2c], 0x22
mov byte [ebp - 0x2b], 0
mov byte [ebp - 0x2a], 0
mov byte [ebp - 0x29], 0
mov byte [ebp - 0x28], 0x90
mov byte [ebp - 0x27], 0x66
mov byte [ebp - 0x26], 0xe
mov byte [ebp - 0x25], 0
mov byte [ebp - 0x24], 0xe8
mov byte [ebp - 0x23], 2
mov byte [ebp - 0x22], 0
mov byte [ebp - 0x21], 0
mov byte [ebp - 0x20], 0
mov byte [ebp - 0x1f], 0
mov byte [ebp - 0x1e], 0
mov byte [ebp - 0x1d], 0
mov byte [ebp - 0x1c], 0
mov byte [ebp - 0x1b], 0
mov byte [ebp - 0x1a], 0
mov byte [ebp - 0x19], 0
push 0x130
lea ecx, [ebp - 0x38]
push ecx
push 0x64
mov edx, dword [ebp + 8]
add edx, 0xa0
push edx
call fcn.004046b8
add esp, 0x10
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0
mov eax, 1
test eax, eax
je 0x405865
push 0xffffffffffffffff
mov ecx, dword [0x41dbb4]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [ebp - 0x14c]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c4]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c8]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406e70
test eax, eax
je 0x405707
push 0
push 1
mov edx, dword [0x41dbb4]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push 0x10
mov eax, dword [ebp + 8]
add eax, 0xa0
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xb4
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [0x41d4e0]
push edx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x180], eax
push 0
mov eax, dword [ebp - 0x180]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 0x180]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
mov dword [ebp - 0x184], 0
lea edx, [ebp - 0x10]
push edx
call fcn.00409cd6
add esp, 8
mov eax, dword [ebp - 0x184]
jmp 0x4058ff
push 0
push 1
mov eax, dword [0x41dbb4]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
lea ecx, [ebp - 0x14c]
push ecx
push 0xc
mov edx, dword [ebp + 8]
add edx, 0x94
push edx
call fcn.00404914
add esp, 0xc
test eax, eax
jne 0x405759
push 0xffffffffffffffff
mov dword [ebp - 0x188], 0
lea eax, [ebp - 0x10]
push eax
call fcn.00409cd6
add esp, 8
mov eax, dword [ebp - 0x188]
jmp 0x4058ff
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x94]
push edx
push 0x417790
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x98]
push edx
push 0x417790
lea eax, [ebp - 0x168]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x14c]
push ecx
push 0
lea edx, [ebp - 0x168]
push edx
lea eax, [ebp - 0x15c]
push eax
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx + 0x9e]
push edx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + 0x9f]
push ecx
call fcn.00404d1d
add esp, 0x18
test eax, eax
jne 0x4057e0
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
jmp 0x40563b
push 0xffffffffffffffff
mov eax, dword [0x41dbb4]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x14c]
push ecx
lea edx, [ebp - 0x168]
push edx
lea eax, [ebp - 0x15c]
push eax
push 0
lea ecx, [ebp - 0x44]
push ecx
call fcn.00406db0
test eax, eax
jne 0x405846
push 0
push 1
mov edx, dword [0x41dbb4]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push 0xffffffffffffffff
mov dword [ebp - 0x18c], 1
lea eax, [ebp - 0x10]
push eax
call fcn.00409cd6
add esp, 8
mov eax, dword [ebp - 0x18c]
jmp 0x4058ff
push 0
push 1
mov ecx, dword [0x41dbb4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
jmp 0x40563b
mov dword [ebp - 4], 0xffffffff
call fcn.00405873
jmp 0x4058b6
push 0x10
mov ecx, dword [ebp + 8]
add ecx, 0xa0
push ecx
mov edx, dword [ebp + 8]
add edx, 0xb4
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x41d4e0]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x48], eax
push 0
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret