Function at 0x407fd4
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 0x407fdd
mov eax, dword [ebp - 4]
add esp, 0xfffff5d8
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, 0x50b698
call fcn.0040ab48
push 0x2349
push 0x68
push edi
call sub.KERNEL32.DLL_FindResourceA
mov esi, eax
test esi, esi
jne 0x408039
mov eax, dword [ebp + 0x14]
push eax
call fcn.00407d1c
pop ecx
test eax, eax
jne 0x4080b4
xor eax, eax
mov edx, dword [ebp - 0x48]
mov dword fs:[0], edx
jmp 0x40861c
push esi
push edi
call sub.KERNEL32.DLL_LoadResource
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x40806d
push 0x10
push 0x50b407
push 0x50b3ee
push 0
call sub.USER32.DLL_MessageBoxA
xor eax, eax
mov edx, dword [ebp - 0x48]
mov dword fs:[0], edx
jmp 0x40861c
mov ecx, dword [ebp - 0x4c]
push ecx
call sub.KERNEL32.DLL_LockResource
mov dword [0x44b16c], eax
cmp dword [0x44b16c], 0
jne 0x4080a8
push 0x10
push 0x50b426
push str.Cant_load_dll_from_Res_
push 0
call sub.USER32.DLL_MessageBoxA
xor eax, eax
mov edx, dword [ebp - 0x48]
mov dword fs:[0], edx
jmp 0x40861c
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.0040a4fc
add esp, 0xc
call sub.KERNEL32.DLL_GetTickCount
mov ecx, 0x1ff
xor edx, edx
div ecx
mov dword [0x52de68], edx
mov esi, 0x50b013
lea edi, [ebp - 0x26e8]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
push 0x4cc
lea eax, [ebp - 0x26e8]
push eax
push 0x64
lea edx, [ebx + 0x128]
push edx
call fcn.00402568
add esp, 0x10
xor ecx, ecx
mov dword [ebp - 0x68], ecx
push 0x14
call fcn.00409014
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x408146
mov word [ebp - 0x38], 0x14
mov edx, dword [ebp - 4]
push edx
call fcn.00402724
pop ecx
mov word [ebp - 0x38], 8
mov esi, dword [ebp - 4]
jmp 0x408149
mov esi, dword [ebp - 4]
push esi
mov esi, 0x50b033
lea edi, [ebp - 0x29f4]
mov ecx, 0x82
rep movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x29f4]
push eax
call fcn.00407cac
pop ecx
push 0x2658
push ebx
lea edx, [ebp - 0x26c8]
push edx
call fcn.0040a4fc
add esp, 0xc
push 0x2658
lea ecx, [ebp - 0x26c8]
push ecx
push ebx
call fcn.0040a4fc
add esp, 0xc
cmp byte [ebx + 0x570], 1
jne 0x4081c5
lea eax, [ebp - 0x27ec]
push eax
mov edx, dword [ebp - 0x68]
push edx
push esi
call fcn.00404220
add esp, 0xc
mov edi, eax
lea eax, [ebp - 0x27ec]
push eax
push esi
call fcn.0040287c
add esp, 8
jmp 0x4081e9
lea edx, [ebp - 0x27ec]
push edx
mov ecx, dword [ebx + 0x560]
push ecx
mov eax, dword [ebx + 0x564]
push eax
mov edx, dword [ebp - 0x68]
push edx
push esi
call fcn.004041e4
add esp, 0x14
mov edi, eax
test edi, edi
je 0x408266
cmp byte [ebx + 0x558], 1
jne 0x408227
cmp dword [0x44b764], 0
jne 0x408227
mov dword [0x44b764], 1
lea eax, [ebp - 0x29f4]
push eax
push ebx
call fcn.00407e6c
add esp, 8
test eax, eax
je 0x408227
xor edx, edx
mov dword [ebp - 0x68], edx
jmp 0x40817f
mov edi, esi
mov dword [ebp - 0xc], edi
test edi, edi
je 0x40824e
mov eax, dword [edi]
mov dword [ebp - 8], eax
mov word [ebp - 0x38], 0x2c
push 3
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [edx]
call dword [ecx]
mov word [ebp - 0x38], 0x20
add esp, 8
push ebx
call fcn.00408f84
pop ecx
xor eax, eax
mov edx, dword [ebp - 0x48]
mov dword fs:[0], edx
jmp 0x40861c
lea ecx, [ebp - 0x27ec]
lea eax, [ebx + 0x118]
push ecx
push 0x10
push eax
call fcn.0040244c
add esp, 0xc
test eax, eax
je 0x4085a3
lea edx, [ebp - 0x27ec]
push edx
push 0x118
push ebx
call fcn.0040244c
add esp, 0xc
test eax, eax
je 0x4085a3
lea ecx, [ebx + 0x5f4]
push ecx
push 0x118
push ebx
call fcn.00402648
add esp, 0xc
cmp byte [ebx + 4], 0
jne 0x4082cb
cmp byte [ebx + 0x558], 1
jne 0x4083f5
lea eax, [ebp - 0x27ec]
lea edx, [ebp - 0x70]
push eax
push edx
push esi
call fcn.0040478c
add esp, 0xc
test eax, eax
jne 0x4085a3
push esi
mov esi, 0x50b23c
lea edi, [ebp - 0x2a08]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop esi
lea eax, [ebp - 0x27ec]
push eax
lea edx, [ebp - 0x2a08]
push edx
push esi
call fcn.0040493c
add esp, 0xc
test eax, eax
jne 0x4085a3
lea ecx, [ebp - 0x2a08]
push ecx
lea eax, [ebx + 0x105]
push eax
call fcn.0040a91c
add esp, 8
test eax, eax
jne 0x4085a3
cmp byte [ebx + 0x126], 1
jne 0x4083f5
cmp dword [0x50acfc], 0
jne 0x4083ac
mov dword [0x50acfc], 1
lea edx, [ebp - 0x29f4]
push edx
push ebx
call fcn.00407e6c
add esp, 8
test eax, eax
jne 0x4083ac
mov edi, esi
mov dword [ebp - 0x14], edi
test edi, edi
je 0x408394
mov eax, dword [edi]
mov dword [ebp - 0x10], eax
mov word [ebp - 0x38], 0x44
push 3
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [edx]
call dword [ecx]
mov word [ebp - 0x38], 0x38
add esp, 8
push ebx
call fcn.00408f84
pop ecx
xor eax, eax
mov edx, dword [ebp - 0x48]
mov dword fs:[0], edx
jmp 0x40861c
push esi
mov esi, 0x50b24e
lea edi, [ebp - 0x2a2c]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop esi
lea eax, [ebp - 0x27ec]
push eax
lea edx, [ebp - 0x2a2c]
push edx
push esi
call fcn.004046a8
add esp, 0xc
test eax, eax
jne 0x4085a3
lea ecx, [ebp - 0x2a2c]
push ecx
call dword [0x52dc44]
test eax, eax
jne 0x4085a3
cmp byte [ebx + 0x570], 3
jne 0x40843e
cmp byte [ebx + 0x2a], 0
je 0x40843e
lea eax, [ebp - 0x27ec]
push eax
push esi
call fcn.0040287c
add esp, 8
lea edx, [ebp - 0x27ec]
push edx
mov ecx, dword [ebx + 0x568]
push ecx
mov eax, dword [ebx + 0x56c]
push eax
mov edx, dword [ebp - 0x68]
push edx
push esi
call fcn.004041a8
add esp, 0x14
test eax, eax
jne 0x4085a3
cmp byte [ebx + 0x570], 1
jne 0x408467
cmp byte [ebx + 0x29], 0
je 0x408485
lea ecx, [ebp - 0x27ec]
push ecx
push ebx
call fcn.00404d44
add esp, 8
test eax, eax
je 0x4085a3
jmp 0x408485
cmp byte [ebx + 0x2a], 0
je 0x408485
lea eax, [ebp - 0x27ec]
push eax
push ebx
call fcn.00404d44
add esp, 8
test eax, eax
je 0x4085a3
cmp byte [ebx + 0x2b], 0
je 0x4084a3
lea edx, [ebp - 0x27ec]
push edx
push ebx
call fcn.00404ee4
add esp, 8
test eax, eax
je 0x4085a3
cmp byte [ebx + 0x570], 1
je 0x4084ca
cmp byte [ebx + 0x29], 0
je 0x4084ca
lea ecx, [ebp - 0x27ec]
push ecx
push ebx
call fcn.00404b8c
add esp, 8
test eax, eax
je 0x4085a3
cmp dword [0x50acfc], 0
je 0x4084d9
call dword [0x52dc40]
mov eax, dword [ebx + 0x118]
lea edx, [ebp - 0x58]
push eax
push 0x50b42c
push edx
call sub.USER32.DLL_wsprintfA
add esp, 0xc
mov ecx, dword [ebx + 0x11c]
push ecx
push 0x50b42f
lea eax, [ebp - 0x64]
push eax
call sub.USER32.DLL_wsprintfA
add esp, 0xc
lea edx, [ebp - 0x27ec]
lea ecx, [ebp - 0x64]
lea eax, [ebp - 0x58]
push edx
push ecx
push eax
lea edx, [ebp - 0x69]
push 0
push edx
push esi
call fcn.00403d5c
add esp, 0x18
test eax, eax
jne 0x4085a3
lea ecx, [ebp - 0x27ec]
push ecx
lea eax, [ebp - 0x64]
push eax
lea edx, [ebp - 0x58]
push edx
push ebx
call fcn.004062d0
add esp, 0x10
test eax, eax
je 0x4085a3
lea ecx, [ebp - 0x27ec]
push ecx
mov eax, dword [ebp + 0x10]
push eax
call sub.KERNEL32.DLL_lstrcpyA
cmp byte [ebx + 0x2b], 0
je 0x40856b
lea edx, [ebp - 0x27ec]
push edx
push ebx
call dword [0x52de84]
mov ebx, esi
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x408592
mov eax, dword [ebx]
mov dword [ebp - 0x18], eax
mov word [ebp - 0x38], 0x5c
push 3
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [edx]
call dword [ecx]
mov word [ebp - 0x38], 0x50
add esp, 8
mov eax, 1
mov edx, dword [ebp - 0x48]
mov dword fs:[0], edx
jmp 0x40861c
inc dword [ebp - 0x68]
jmp 0x40817f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret