Function at 0x407514
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x40751d
mov eax, dword [ebp - 4]
add esp, 0xfffff5f8
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, 0x518a00
call fcn.0040a028
push 0x2349
push 0x68
push edi
call sub.KERNEL32.DLL_FindResourceA
mov esi, eax
test esi, esi
jne 0x407579
mov eax, dword [ebp + 0x14]
push eax
call fcn.00407324
pop ecx
test eax, eax
jne 0x4075f4
xor eax, eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x407ae2
push esi
push edi
call sub.KERNEL32.DLL_LoadResource
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x4075ad
push 0x10
push 0x518857
push 0x51883e
push 0
call sub.USER32.DLL_MessageBoxA
xor eax, eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x407ae2
mov ecx, dword [ebp - 0x30]
push ecx
call sub.KERNEL32.DLL_LockResource
mov dword [0x44b16c], eax
cmp dword [0x44b16c], 0
jne 0x4075e8
push 0x10
push 0x518876
push str.Cant_load_dll_from_Res_
push 0
call sub.USER32.DLL_MessageBoxA
xor eax, eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x407ae2
push esi
push edi
call sub.KERNEL32.DLL_SizeofResource
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
push 0x2658
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
sub edx, 0x2658
add edx, dword [0x44b16c]
push edx
push ebx
call fcn.004099dc
add esp, 0xc
call sub.KERNEL32.DLL_GetTickCount
mov ecx, 0x1ff
xor edx, edx
div ecx
mov dword [0x53b170], edx
mov esi, 0x518463
lea edi, [ebp - 0x26c8]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
push 0x4cc
lea eax, [ebp - 0x26c8]
push eax
push 0x64
lea edx, [ebx + 0x128]
push edx
call fcn.00402178
add esp, 0x10
xor edi, edi
mov esi, 0x518483
mov ecx, 0x82
push edi
lea edi, [ebp - 0x29d4]
rep movsd dword es:[edi], dword [esi]
pop edi
lea eax, [ebp - 0x29d4]
push eax
call fcn.004072b4
pop ecx
push 0x2658
push ebx
lea edx, [ebp - 0x26a8]
push edx
call fcn.004099dc
add esp, 0xc
push 0x2658
lea ecx, [ebp - 0x26a8]
push ecx
push ebx
call fcn.004099dc
add esp, 0xc
cmp byte [ebx + 0x570], 1
jne 0x4076de
lea eax, [ebp - 0x27cc]
mov edx, dword [0x44c084]
push eax
push edi
push edx
call fcn.00403e0c
add esp, 0xc
mov esi, eax
lea eax, [ebp - 0x27cc]
push eax
mov edx, dword [0x44c084]
push edx
call fcn.00402460
add esp, 8
jmp 0x407705
lea ecx, [ebp - 0x27cc]
push ecx
mov ecx, dword [0x44c084]
mov eax, dword [ebx + 0x560]
push eax
mov edx, dword [ebx + 0x564]
push edx
push edi
push ecx
call fcn.00403dd0
add esp, 0x14
mov esi, eax
test esi, esi
je 0x407758
cmp byte [ebx + 0x558], 1
jne 0x407740
cmp dword [0x44b574], 0
jne 0x407740
mov dword [0x44b574], 1
lea eax, [ebp - 0x29d4]
push eax
push ebx
call fcn.00407474
add esp, 8
test eax, eax
je 0x407740
xor edi, edi
jmp 0x40768f
push ebx
call fcn.00408464
pop ecx
xor eax, eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x407ae2
lea ecx, [ebp - 0x27cc]
lea eax, [ebx + 0x118]
push ecx
push 0x10
push eax
call fcn.004020fc
add esp, 0xc
test eax, eax
je 0x407a92
lea edx, [ebp - 0x27cc]
push edx
push 0x118
push ebx
call fcn.004020fc
add esp, 0xc
test eax, eax
je 0x407a92
lea ecx, [ebx + 0x5f4]
push ecx
push 0x118
push ebx
call fcn.00402258
add esp, 0xc
cmp byte [ebx + 4], 0
jne 0x4077bd
cmp byte [ebx + 0x558], 1
jne 0x4078d2
lea eax, [ebp - 0x27cc]
push eax
lea edx, [ebp - 0x50]
push edx
mov ecx, dword [0x44c084]
push ecx
call fcn.00404378
add esp, 0xc
test eax, eax
jne 0x407a92
push edi
mov esi, 0x51868c
lea edi, [ebp - 0x29e8]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop edi
lea eax, [ebp - 0x27cc]
push eax
lea edx, [ebp - 0x29e8]
push edx
mov ecx, dword [0x44c084]
push ecx
call fcn.00404528
add esp, 0xc
test eax, eax
jne 0x407a92
lea eax, [ebp - 0x29e8]
push eax
lea edx, [ebx + 0x105]
push edx
call fcn.00409dfc
add esp, 8
test eax, eax
jne 0x407a92
cmp byte [ebx + 0x126], 1
jne 0x4078d2
cmp dword [0x51814c], 0
jne 0x407883
mov dword [0x51814c], 1
lea ecx, [ebp - 0x29d4]
push ecx
push ebx
call fcn.00407474
add esp, 8
test eax, eax
jne 0x407883
push ebx
call fcn.00408464
pop ecx
xor eax, eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x407ae2
push edi
mov esi, 0x51869e
lea edi, [ebp - 0x2a0c]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop edi
lea eax, [ebp - 0x27cc]
push eax
lea edx, [ebp - 0x2a0c]
push edx
mov ecx, dword [0x44c084]
push ecx
call fcn.00404294
add esp, 0xc
test eax, eax
jne 0x407a92
lea eax, [ebp - 0x2a0c]
push eax
call dword [0x53af4c]
test eax, eax
jne 0x407a92
cmp byte [ebx + 0x570], 3
jne 0x407923
cmp byte [ebx + 0x2a], 0
je 0x407923
lea edx, [ebp - 0x27cc]
push edx
mov ecx, dword [0x44c084]
push ecx
call fcn.00402460
add esp, 8
lea eax, [ebp - 0x27cc]
push eax
mov eax, dword [0x44c084]
mov edx, dword [ebx + 0x568]
push edx
mov ecx, dword [ebx + 0x56c]
push ecx
push edi
push eax
call fcn.00403d94
add esp, 0x14
test eax, eax
jne 0x407a92
cmp byte [ebx + 0x570], 1
jne 0x40794c
cmp byte [ebx + 0x29], 0
je 0x40796a
lea edx, [ebp - 0x27cc]
push edx
push ebx
call fcn.00404878
add esp, 8
test eax, eax
je 0x407a92
jmp 0x40796a
cmp byte [ebx + 0x2a], 0
je 0x40796a
lea ecx, [ebp - 0x27cc]
push ecx
push ebx
call fcn.00404878
add esp, 8
test eax, eax
je 0x407a92
cmp byte [ebx + 0x2b], 0
je 0x407988
lea eax, [ebp - 0x27cc]
push eax
push ebx
call fcn.00404920
add esp, 8
test eax, eax
je 0x407a92
cmp byte [ebx + 0x570], 1
je 0x4079af
cmp byte [ebx + 0x29], 0
je 0x4079af
lea edx, [ebp - 0x27cc]
push edx
push ebx
call fcn.004047b8
add esp, 8
test eax, eax
je 0x407a92
cmp dword [0x51814c], 0
je 0x4079be
call dword [0x53af48]
mov ecx, dword [ebx + 0x118]
lea eax, [ebp - 0x3c]
push ecx
push 0x51887c
push eax
call sub.USER32.DLL_wsprintfA
add esp, 0xc
mov edx, dword [ebx + 0x11c]
push edx
push 0x51887f
lea ecx, [ebp - 0x48]
push ecx
call sub.USER32.DLL_wsprintfA
add esp, 0xc
lea eax, [ebp - 0x27cc]
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x3c]
push eax
push edx
push ecx
lea eax, [ebp - 0x49]
push 0
push eax
mov edx, dword [0x44c084]
push edx
call fcn.00403948
add esp, 0x18
test eax, eax
jne 0x407a92
lea ecx, [ebp - 0x27cc]
push ecx
lea eax, [ebp - 0x48]
push eax
lea edx, [ebp - 0x3c]
push edx
push ebx
call fcn.004058d8
add esp, 0x10
test eax, eax
je 0x407a92
lea ecx, [ebp - 0x27cc]
push ecx
mov eax, dword [ebp + 0x10]
push eax
call sub.KERNEL32.DLL_lstrcpyA
cmp byte [ebx + 0x2b], 0
je 0x407a56
lea edx, [ebp - 0x27cc]
push edx
push ebx
call dword [0x53b18c]
mov ebx, dword [0x44c084]
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x407a81
mov eax, dword [ebx]
mov dword [ebp - 4], eax
mov word [ebp - 0x1c], 0x14
push 3
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [edx]
call dword [ecx]
mov word [ebp - 0x1c], 8
add esp, 8
mov eax, 1
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x407ae2
inc edi
jmp 0x40768f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret