Function at 0x487a34
Capabilities:
Extract resource via kernel32 functions
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x20c
push 0
push 0
dec ecx
jne 0x487a3c
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x18], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x487e3a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x19], 0
xor edx, edx
push ebp
push 0x487dc7
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x1028]
mov eax, dword [0x491368]
mov eax, dword [eax]
call fcn.00482d34
mov edx, dword [ebp - 0x1028]
lea eax, [ebp - 8]
mov ecx, 0
call fcn.004074a4
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x102c]
mov edx, dword [ebp - 8]
call fcn.0040747c
mov edx, dword [ebp - 0x102c]
mov ecx, 0x487e58
mov eax, ebx
call fcn.00487888
test al, al
je 0x487dbd
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 8]
call fcn.00406d14
push eax
call sub.KERNEL32.DLL_LockResource
mov edi, eax
cmp edi, 0xffffffff
jne 0x487b11
lea eax, [ebp - 0x1030]
mov edx, dword [ebp - 8]
call fcn.0040747c
mov eax, dword [ebp - 0x1030]
call fcn.004072ec
push eax
call sub.KERNEL32.DLL_ResumeThread
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x487dd1
xor eax, eax
push ebp
push 0x487b33
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00410d84
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x487b4f
push 0
push 0
push ebx
push edi
call sub.KERNEL32.DLL_VirtualQuery
push 0
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp - 0x24]
push eax
push edi
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
jne 0x487b7d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x487dd1
xor eax, eax
push ebp
push 0x487bb5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1034]
lea edx, [ebp - 0x24]
mov ecx, 4
call fcn.00407448
mov eax, dword [ebp - 0x1034]
call fcn.00410d84
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x487bd1
test esi, esi
jl 0x487bdd
cmp esi, 0x1000
jle 0x487bea
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x487dd1
push 0
lea eax, [ebp - 0x20]
push eax
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x1024]
push eax
push edi
call sub.KERNEL32.DLL_IsValidLocale
cmp eax, 1
sbb ebx, ebx
inc ebx
push edi
call sub.KERNEL32.DLL_GlobalDeleteAtom
test bl, bl
je 0x487dbd
mov eax, dword [ebp - 0x20]
xor edx, edx
push edx
push eax
lea eax, [esi + 4]
cdq
cmp edx, dword [esp + 4]
jne 0x487c29
cmp eax, dword [esp]
pop edx
pop eax
jne 0x487dbd
lea eax, [ebp - 0x1024]
add eax, esi
movzx edx, byte [eax]
cmp dl, byte [ebp - 0x24]
jne 0x487dbd
movzx edx, byte [eax + 1]
cmp dl, byte [ebp - 0x23]
jne 0x487dbd
movzx edx, byte [eax + 2]
cmp dl, byte [ebp - 0x22]
jne 0x487dbd
mov byte [eax], 0x30
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1038]
lea edx, [ebp - 0x1024]
mov ecx, 0x1000
push 0
call fcn.004068f8
mov eax, dword [ebp - 0x1038]
mov ecx, esi
mov edx, 1
call fcn.00406d94
lea eax, [ebp - 0x1040]
mov edx, dword [ebp - 0x10]
call fcn.0040747c
mov eax, dword [ebp - 0x1040]
lea edx, [ebp - 0x103c]
call fcn.00485f60
mov edx, dword [ebp - 0x103c]
lea eax, [ebp - 0xc]
mov ecx, 0
call fcn.004074a4
lea eax, [ebp - 0x1044]
mov edx, dword [ebp - 0xc]
call fcn.0040747c
mov edx, dword [ebp - 0x1044]
mov eax, 0x487e84
call fcn.00407cb0
mov ebx, eax
test ebx, ebx
jle 0x487d62
lea eax, [ebp - 0x1050]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.00406d94
mov edx, dword [ebp - 0x1050]
lea eax, [ebp - 0x104c]
call fcn.0040747c
mov eax, dword [ebp - 0x104c]
lea edx, [ebp - 0x1048]
call fcn.00410534
mov edx, dword [ebp - 0x1048]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0xc]
mov ecx, ebx
mov edx, 1
call fcn.00406df8
lea eax, [ebp - 0x1054]
mov edx, dword [ebp - 0xc]
call fcn.0040747c
mov edx, dword [ebp - 0x1054]
mov eax, 0x487e84
call fcn.00407cb0
mov ebx, eax
test ebx, ebx
jg 0x487ce6
lea eax, [ebp - 0x105c]
mov edx, dword [ebp - 0xc]
call fcn.0040747c
mov eax, dword [ebp - 0x105c]
lea edx, [ebp - 0x1058]
call fcn.00410534
cmp dword [ebp - 0x1058], 0
je 0x487db9
lea eax, [ebp - 0x1064]
mov edx, dword [ebp - 0xc]
call fcn.0040747c
mov eax, dword [ebp - 0x1064]
lea edx, [ebp - 0x1060]
call fcn.00410534
mov edx, dword [ebp - 0x1060]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov byte [ebp - 0x19], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x487dd1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487e41
lea eax, [ebp - 0x1064]
mov edx, 5
call fcn.00407258
lea eax, [ebp - 0x1050]
call fcn.004065a0
lea eax, [ebp - 0x104c]
mov edx, 5
call fcn.00407258
lea eax, [ebp - 0x1038]
call fcn.004065a0
lea eax, [ebp - 0x1034]
mov edx, 4
call fcn.00407258
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004065c4
lea eax, [ebp - 4]
call fcn.00407250
ret