Function at 0x401828
Capabilities:
Extract resource via kernel32 functions
Terminate process

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x401831
mov eax, dword [ebp - 4]
add esp, 0xfffffb80
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push 0x2349
push 0x68
push edi
call sub.KERNEL32.DLL_FindResourceA
mov esi, eax
test esi, esi
jne 0x401875
mov eax, dword [ebp + 0x14]
push eax
call fcn.0040160c
pop ecx
test eax, eax
jne 0x4018b6
xor eax, eax
jmp 0x401bc4
push esi
push edi
call sub.KERNEL32.DLL_LoadResource
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40188c
xor eax, eax
jmp 0x401bc4
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.DLL_LockResource
mov dword [0x49016c], eax
cmp dword [0x49016c], 0
jne 0x4018aa
xor eax, eax
jmp 0x401bc4
push esi
push edi
call sub.KERNEL32.DLL_SizeofResource
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
push 0x4330
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx]
sub eax, 0x4330
add eax, dword [0x49016c]
push eax
push ebx
call fcn.00405210
add esp, 0xc
call sub.KERNEL32.DLL_GetTickCount
mov ecx, 0x3ff
xor edx, edx
div ecx
mov dword [0x4a8798], edx
mov esi, 0x490e3a
lea edi, [ebp - 0x4370]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
push 0x1d0
lea eax, [ebp - 0x4370]
push eax
push 0x64
lea edx, [ebx + 0xfc]
push edx
call fcn.00403340
add esp, 0x10
xor esi, esi
push 0x4330
push ebx
lea eax, [ebp - 0x4350]
push eax
call fcn.00405210
add esp, 0xc
push 0x4330
lea edx, [ebp - 0x4350]
push edx
push ebx
call fcn.00405210
add esp, 0xc
lea ecx, [ebp - 0x4474]
push ecx
mov eax, dword [ebx + 0x238]
push eax
mov edx, dword [ebx + 0x23c]
push edx
push esi
call fcn.0043e490
test eax, eax
je 0x4019a8
mov ecx, dword [ebx + 0x234]
push ecx
lea eax, [ebx + 0xfc]
push eax
add ebx, 0x12e
push ebx
push 0
call fcn.00403c30
add esp, 0x10
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 0x401bc4
mov al, byte [ebx + 0x248]
cmp al, 0xa
jb 0x401a1a
cmp al, 0x20
jae 0x401a1a
lea edx, [ebp - 0x4474]
push edx
mov ecx, dword [ebx + 0x240]
push ecx
mov eax, dword [ebx + 0x244]
push eax
push esi
call fcn.0043eb78
test eax, eax
je 0x401a1a
mov edx, dword [ebx + 0x234]
push edx
lea ecx, [ebx + 0xfc]
push ecx
add ebx, 0x12e
push ebx
push 0
call fcn.00403c30
add esp, 0x10
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 0x401bc4
lea edx, [ebp - 0x4474]
lea ecx, [ebx + 0xf0]
push edx
push 0xc
push ecx
call fcn.004032b4
add esp, 0xc
test eax, eax
jne 0x401a3d
xor eax, eax
jmp 0x401bc4
lea edx, [ebp - 0x4474]
push edx
push 0xf0
push ebx
call fcn.004032b4
add esp, 0xc
test eax, eax
jne 0x401a5d
xor eax, eax
jmp 0x401bc4
lea edx, [ebx + 0x2cc]
push edx
push 0xf0
push ebx
call fcn.00403464
add esp, 0xc
mov ecx, dword [ebx + 0xf0]
push ecx
push 0x490f33
lea eax, [ebp - 0x10]
push eax
call sub.USER32.DLL_wsprintfA
add esp, 0xc
mov edx, dword [ebx + 0xf4]
push edx
push 0x490f36
lea ecx, [ebp - 0x1c]
push ecx
call sub.USER32.DLL_wsprintfA
add esp, 0xc
lea eax, [ebp - 0x4474]
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x10]
push eax
push 0
push edx
push ecx
xor eax, eax
xor edx, edx
mov al, byte [ebx + 0xf9]
xor ecx, ecx
push eax
mov dl, byte [ebx + 0xfa]
push edx
mov cl, byte [ebx + 1]
push ecx
call fcn.004038e8
add esp, 0x1c
test eax, eax
jne 0x401add
inc esi
jmp 0x40192f
cmp byte [ebx + 0x11], 0
je 0x401afd
lea eax, [ebp - 0x4474]
push eax
push ebx
call fcn.004015a8
add esp, 8
test eax, eax
jne 0x401afd
inc esi
jmp 0x40192f
cmp byte [ebx + 0x12], 0
je 0x401b1d
lea edx, [ebp - 0x4474]
push edx
push ebx
call fcn.0040151c
add esp, 8
test eax, eax
jne 0x401b1d
inc esi
jmp 0x40192f
lea ecx, [ebp - 0x4474]
lea eax, [ebp - 0x1c]
push ecx
push eax
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x1d]
push edx
push 0
push ecx
call fcn.0043e418
test eax, eax
jne 0x401b7e
lea eax, [ebp - 0x4474]
push eax
mov edx, dword [ebp + 0x10]
push edx
call sub.KERNEL32.DLL_lstrcpyA
cmp byte [ebx + 0x13], 0
je 0x401b5f
lea ecx, [ebp - 0x4474]
push ecx
push ebx
call dword [0x4a87b8]
push 0x10
add ebx, 0x431c
push ebx
lea eax, [ebp - 0x4484]
push eax
call fcn.00405210
add esp, 0xc
mov eax, 1
jmp 0x401bc4
inc esi
jmp 0x40192f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret