Function at 0x40a840
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x458d60
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x46db30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7c], ecx
push 0xf0
movzx eax, word [ebp + 8]
push eax
mov ecx, 0x473b90
call fcn.00407ad0
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x20], 0
je 0x40a8cf
mov ecx, dword [ebp - 0x20]
push ecx
mov ecx, 0x473b90
call fcn.00407ad0
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40a8cf
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
push 5
movzx eax, word [ebp + 8]
push eax
mov ecx, 0x473b90
call fcn.00407ad0
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40ac4f
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, 0x473b90
call fcn.00407ad0
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0x28], 0
je 0x40ac47
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x40ac3d
mov eax, dword [ebp - 0x24]
push eax
call fcn.0040bc10
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0040bbe0
add esp, 4
mov dx, word [eax]
mov word [ebp - 0x38], dx
mov eax, dword [ebp - 0x24]
push eax
call fcn.0040bae0
add esp, 4
mov dword [ebp - 0x30], eax
push 5
lea ecx, [ebp - 0x78]
push ecx
mov ecx, dword [ebp - 0x7c]
add ecx, 4
call fcn.0040bab0
mov ecx, eax
call fcn.0041ebc0
mov dword [ebp - 0x34], eax
xor edx, edx
mov word [ebp - 0x3c], dx
jmp 0x40a994
mov ax, word [ebp - 0x3c]
add ax, 1
mov word [ebp - 0x3c], ax
movzx ecx, word [ebp - 0x3c]
movzx edx, word [ebp - 0x38]
cmp ecx, edx
jge 0x40ac3b
cmp dword [ebp - 0x2c], 0
je 0x40a9b5
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x80], ecx
jmp 0x40a9bf
mov edx, dword [ebp - 0x30]
movzx eax, word [edx + 0x10]
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x30]
push eax
call fcn.0040ba70
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x40ac0c
mov dword [ebp - 0x44], 0
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.0040b9e0
add esp, 0xc
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x48]
call fcn.0040fbf0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x50], 0
je 0x40aa8f
mov edx, dword [ebp - 0x50]
push edx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x40aa74
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
call fcn.0040c6c0
add esp, 0x10
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [ebp - 0x48]
call fcn.0042bd40
push eax
push 1
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
jmp 0x40aa8f
mov dword [ebp - 0x1c], 0x8007000e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0040c5d0
jmp 0x40ac3b
lea ecx, [ebp - 0x4c]
call fcn.00415a80
mov byte [ebp - 4], 1
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x48]
call fcn.0041ebc0
push eax
call fcn.0040b770
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jl 0x40abef
cmp dword [ebp - 0x2c], 0
je 0x40aad1
mov eax, dword [ebp - 0x30]
add eax, 0x18
mov dword [ebp - 0x84], eax
jmp 0x40aadd
mov ecx, dword [ebp - 0x30]
add ecx, 0x12
mov dword [ebp - 0x84], ecx
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x70], edx
cmp dword [ebp - 0x2c], 0
je 0x40aafc
mov eax, dword [ebp - 0x30]
mov cx, word [eax + 0xc]
mov word [ebp - 0x86], cx
jmp 0x40ab0a
mov edx, dword [ebp - 0x30]
mov ax, word [edx + 8]
mov word [ebp - 0x86], ax
movsx ecx, word [ebp - 0x86]
mov dword [ebp - 0x6c], ecx
cmp dword [ebp - 0x2c], 0
je 0x40ab2a
mov edx, dword [ebp - 0x30]
mov ax, word [edx + 0xe]
mov word [ebp - 0x88], ax
jmp 0x40ab38
mov ecx, dword [ebp - 0x30]
mov dx, word [ecx + 0xa]
mov word [ebp - 0x88], dx
movsx eax, word [ebp - 0x88]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x2c], 0
je 0x40ab58
mov ecx, dword [ebp - 0x30]
mov dx, word [ecx + 0x10]
mov word [ebp - 0x8a], dx
jmp 0x40ab66
mov eax, dword [ebp - 0x30]
mov cx, word [eax + 0xc]
mov word [ebp - 0x8a], cx
movsx edx, word [ebp - 0x8a]
add edx, dword [ebp - 0x6c]
mov dword [ebp - 0x64], edx
cmp dword [ebp - 0x2c], 0
je 0x40ab89
mov eax, dword [ebp - 0x30]
mov cx, word [eax + 0x12]
mov word [ebp - 0x8c], cx
jmp 0x40ab97
mov edx, dword [ebp - 0x30]
mov ax, word [edx + 0xe]
mov word [ebp - 0x8c], ax
movsx ecx, word [ebp - 0x8c]
add ecx, dword [ebp - 0x68]
mov dword [ebp - 0x60], ecx
lea edx, [ebp - 0x6c]
push edx
mov ecx, dword [ebp - 0x7c]
call fcn.0040ac90
mov eax, dword [ebp - 0x40]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0041ebc0
push eax
mov ecx, dword [ebp - 0x70]
push ecx
mov ecx, dword [ebp - 0x7c]
add ecx, 0x20
call fcn.0042afc0
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
je 0x40abef
lea ecx, [ebp - 0x48]
call fcn.0041ebc0
push eax
push 0
lea edx, [ebp - 0x6c]
push edx
mov ecx, dword [ebp - 0x74]
call fcn.00407290
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.0040c2a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0040c5d0
jmp 0x40ac23
movzx eax, word [ebp - 0x3c]
test eax, eax
je 0x40ac23
push 2
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x30]
push eax
call fcn.0040b610
add esp, 8
mov dword [ebp - 0x30], eax
jmp 0x40a988
jmp 0x40ac45
call fcn.0040b5f0
mov dword [ebp - 0x1c], eax
jmp 0x40ac4f
call fcn.0040b5f0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4