Function at 0x10031f96
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10062315
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe4
push esi
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1003203a
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x98], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xc4]
movzx eax, byte [eax]
test eax, eax
je 0x10032008
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x9c]
and dword [eax], 0
jmp 0x10032035
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xbc]
movzx eax, byte [eax]
test eax, eax
je 0x10032035
push 0
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x10032512
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x14], 0x84b
mov dword [ebp - 0x18], 0xb17b
mov dword [ebp - 0x1c], 0xcc511ec1
mov dword [ebp - 0x24], 0xfffffff7
push 3
lea ecx, [ebp - 0x80]
call fcn.10012962
and dword [ebp - 4], 0
push 3
lea ecx, [ebp - 0xd0]
call fcn.10012962
mov byte [ebp - 4], 1
mov dword [ebp - 0x30], 9
mov dword [ebp - 0xb8], 0xca2a
push 4
lea ecx, [ebp - 0xdc]
call fcn.10012962
mov byte [ebp - 4], 2
mov dword [ebp - 0x10], 0
jmp 0x100320b9
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 3
jge 0x100320d2
push dword [ebp - 0x10]
lea ecx, [ebp - 0x80]
call fcn.10012a00
mov dword [eax], 0xeaf6082f
jmp 0x100320b2
mov dword [ebp - 0x10], 0
jmp 0x100320e2
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 3
jge 0x100320fe
push dword [ebp - 0x10]
lea ecx, [ebp - 0xd0]
call fcn.10012a00
mov dword [eax], 0x53ea
jmp 0x100320db
mov dword [ebp - 0x10], 0
jmp 0x1003210e
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 4
jge 0x1003212a
push dword [ebp - 0x10]
lea ecx, [ebp - 0xdc]
call fcn.10012a00
mov dword [eax], 0xd489
jmp 0x10032107
cmp dword [ebp - 0x14], 0xffff
je 0x1003213c
mov dword [ebp - 0x5c], 1
jmp 0x10032140
and dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x5c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x14], eax
jg 0x10032160
cmp dword [ebp - 0x18], 0
jne 0x10032160
and dword [ebp - 0x84], 0
jmp 0x1003216a
mov dword [ebp - 0x84], 1
cmp dword [ebp - 0x84], 0xffffffff
jae 0x1003217f
mov dword [ebp - 0xa0], 1
jmp 0x10032186
and dword [ebp - 0xa0], 0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x18], eax
jg 0x1003219d
cmp dword [ebp - 0x18], 0
je 0x1003219d
mov dword [ebp - 0x40], 1
jmp 0x100321a1
and dword [ebp - 0x40], 0
cmp dword [ebp - 0x40], 1
jle 0x100321b6
cmp dword [ebp - 0x14], 0
je 0x100321b6
mov dword [ebp - 0x60], 1
jmp 0x100321ba
and dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x60], eax
jge 0x100321cb
mov dword [ebp - 0x48], 1
jmp 0x100321cf
and dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x48], eax
jl 0x100321dd
cmp dword [ebp - 0x18], 0
je 0x100321ea
mov eax, 0x9a01
test eax, eax
jne 0x10032363
mov dword [ebp - 0xa4], 3
push 3
lea ecx, [ebp - 0xb0]
call fcn.10012962
mov byte [ebp - 4], 3
mov dword [ebp - 0x20], 0
jmp 0x10032215
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 3
jge 0x10032231
push dword [ebp - 0x20]
lea ecx, [ebp - 0xb0]
call fcn.10012a00
mov dword [eax], 0x7b30477a
jmp 0x1003220e
cmp dword [ebp - 0x14], 0
jne 0x10032261
push 1
lea ecx, [ebp - 0xd0]
call fcn.10012a00
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x2c]
mov ecx, dword [ecx]
inc ecx
mov edx, dword [ebp - 0x2c]
mov dword [edx], ecx
test eax, eax
jne 0x10032261
and dword [ebp - 0x3c], 0
jmp 0x10032268
mov dword [ebp - 0x3c], 1
push 0
lea ecx, [ebp - 0x80]
call fcn.10012a00
cmp dword [eax], 0x8d7c
jl 0x10032283
mov dword [ebp - 0x70], 1
jmp 0x10032287
and dword [ebp - 0x70], 0
mov esi, dword [ebp - 0xa4]
push 1
lea ecx, [ebp - 0xb0]
call fcn.10012a00
cmp esi, dword [eax]
je 0x100322a7
mov dword [ebp - 0x50], 1
jmp 0x100322ab
and dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x50]
jne 0x100322c8
mov eax, 0x9a97
test eax, eax
jne 0x100322c8
and dword [ebp - 0x68], 0
jmp 0x100322cf
mov dword [ebp - 0x68], 1
push 2
lea ecx, [ebp - 0xb0]
call fcn.10012a00
mov eax, dword [eax]
cmp eax, dword [ebp - 0x68]
jne 0x100322ec
mov dword [ebp - 0x58], 1
jmp 0x100322f0
and dword [ebp - 0x58], 0
push 1
lea ecx, [ebp - 0xb0]
call fcn.10012a00
mov ecx, dword [ebp - 0x58]
cmp ecx, dword [eax]
jle 0x1003230d
mov dword [ebp - 0x38], 1
jmp 0x10032311
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x38]
add eax, 0x65fe96f7
cmp dword [ebp - 0x3c], eax
je 0x10032327
mov dword [ebp - 0x44], 1
jmp 0x1003232b
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x44], eax
je 0x1003233c
mov dword [ebp - 0x4c], 1
jmp 0x10032340
and dword [ebp - 0x4c], 0
mov esi, dword [ebp - 0x4c]
add esi, 3
push 0
lea ecx, [ebp - 0x80]
call fcn.10012a00
mov dword [eax], esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xb0]
call fcn.100129e4
jmp 0x100323ba
mov dword [ebp - 0x28], 0
jmp 0x10032373
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 2
jge 0x10032389
mov eax, dword [ebp - 0x28]
mov dword [ebp + eax*4 - 0xe8], 1
jmp 0x1003236c
mov dword [ebp - 0x1c], 0xfffffff6
jmp 0x10032399
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xb
jle 0x100323ba
push 4
pop eax
shl eax, 0
mov esi, dword [ebp + eax - 0xe8]
push 0
lea ecx, [ebp - 0x80]
call fcn.10012a00
mov dword [eax], esi
jmp 0x10032392
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x24], eax
jg 0x100323db
mov dword [ebp - 0x54], 1
jmp 0x100323df
and dword [ebp - 0x54], 0
cmp dword [ebp - 0x54], 0xe0bbe0e2
ja 0x100323f1
mov dword [ebp - 0x34], 1
jmp 0x100323f5
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffff
jbe 0x10032410
mov dword [ebp - 0xc0], 1
jmp 0x10032417
and dword [ebp - 0xc0], 0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xec], eax
mov esi, dword [ebp - 0x30]
push 0
lea ecx, [ebp - 0x80]
call fcn.10012a00
imul esi, dword [eax]
cmp esi, dword [ebp - 0xb8]
jl 0x1003244a
mov dword [ebp - 0x64], 1
jmp 0x1003244e
and dword [ebp - 0x64], 0
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x64], eax
jle 0x1003246f
xor eax, eax
jne 0x1003246f
push 0
lea ecx, [ebp - 0x80]
call fcn.10012a00
cmp dword [eax], 0
jne 0x1003246f
and dword [ebp - 0x6c], 0
jmp 0x10032476
mov dword [ebp - 0x6c], 1
push 1
lea ecx, [ebp - 0xd0]
call fcn.10012a00
mov eax, dword [eax]
neg eax
mov ecx, dword [ebp - 0x14]
imul ecx, dword [ebp - 0x6c]
imul eax, ecx
cmp eax, 0x8eaf535
je 0x100324a1
mov dword [ebp - 0x74], 1
jmp 0x100324a5
and dword [ebp - 0x74], 0
push 2
lea ecx, [ebp - 0xdc]
call fcn.10012a00
mov esi, dword [ebp - 0x74]
sub esi, dword [eax]
push 0
lea ecx, [ebp - 0x80]
call fcn.10012a00
mov dword [eax], esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xdc]
call fcn.100129e4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xd0]
call fcn.100129e4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.100129e4
push 0
push dword [ebp - 0x8c]
push 0x1d07
push dword [ebp - 0x94]
push 0x31c3
push 0x2142
call fcn.1002a23a
add esp, 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret