Function at 0x10003320
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x1002324d
mov eax, dword fs:[0]
push eax
sub esp, 0x160
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1002b060]
xor eax, esp
push eax
lea eax, [esp + 0x174]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0x184]
xor ebx, ebx
cmp esi, ebx
je 0x100033ef
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x180], ebx
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
push 0x10025cfc
push esi
call edx
test eax, eax
mov eax, dword [esp + 0x18]
jl 0x10003bc2
cmp eax, ebx
je 0x10003bc2
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x1c]
push ecx
push 0x10025cec
mov byte [esp + 0x184], 1
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
push ebx
push esi
call edx
cmp eax, ebx
jge 0x100033f9
push eax
call fcn.10002260
add esp, 4
mov byte [esp + 0x17c], bl
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x100033d4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x17c], 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x100033ef
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 0x80004005
jmp 0x10003bde
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x144]
push edx
push eax
mov eax, dword [ecx + 0x30]
call eax
mov eax, dword [esp + 0x144]
mov ecx, dword [esp + 0x148]
cmp dword [ebp + 0x34], eax
jne 0x10003430
cmp dword [ebp + 0x38], ecx
jne 0x10003430
mov edx, dword [ebp + 0x28]
cmp edx, dword [0x10036eec]
je 0x10003444
mov dword [ebp + 0x34], eax
mov dword [ebp + 0x38], ecx
mov eax, dword [0x10036eec]
mov dword [ebp + 0x28], eax
mov dword [0x10033b50], ebx
cmp dword [ebp + 0x28], 0x3e8
jne 0x10003489
mov byte [esp + 0x17c], bl
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x10003464
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x17c], 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x1000347f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 1
jmp 0x10003bde
cmp dword [ebp + 0x1a4], ebx
jne 0x10003747
push 4
call fcn.10012cd4
add esp, 4
cmp eax, ebx
je 0x100034a9
mov dword [eax], ebx
mov esi, eax
jmp 0x100034ab
xor esi, esi
mov dword [ebp + 0x1c8], esi
cmp esi, ebx
je 0x10003787
mov edi, str.d3d10.dll
call fcn.10001030
test eax, eax
je 0x10003787
mov eax, dword [ebp + 0x1c8]
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x100034ea
push str.D3D10CreateEffectFromMemory
push eax
call esi
mov dword [0x10033a64], eax
mov eax, dword [ebp + 0x1c8]
mov eax, dword [eax]
cmp eax, ebx
je 0x10003503
push str.D3D10CreateStateBlock
push eax
call esi
mov dword [0x10033a5c], eax
mov eax, dword [ebp + 0x1c8]
mov eax, dword [eax]
cmp eax, ebx
je 0x1000351c
push str.D3D10StateBlockMaskEnableAll
push eax
call esi
mov dword [0x10033a60], eax
cmp dword [0x10033a64], ebx
je 0x10003782
cmp dword [0x10033a5c], ebx
je 0x10003782
cmp dword [0x10033a60], ebx
je 0x10003782
mov eax, dword [0x10033b58]
push 0x10025e20
push 0x66
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ecx, dword [0x10033b58]
mov esi, eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [0x10033b58]
push esi
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
lea esi, [ebp + 0x1a4]
push esi
push ebx
push ecx
push ebx
push eax
push edi
call dword [0x10033a64]
cmp eax, ebx
jge 0x100035b9
call fcn.10002260
mov byte [esp + 0x17c], bl
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x100033d4
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x100033d4
mov eax, dword [esi]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x30]
push ebx
push eax
call edx
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
push ebx
push eax
call edx
mov ecx, dword [eax]
lea edx, [esp + 0x11c]
push edx
push eax
mov eax, dword [ecx + 4]
call eax
mov eax, dword [esp + 0x18]
lea edx, [ebp + 0x1b0]
push edx
mov edx, dword [esp + 0x12c]
push edx
mov edx, dword [esp + 0x12c]
push edx
mov esi, 1
push esi
lea edx, [esp + 0xe8]
mov dword [esp + 0xe8], 0x10025e28
mov dword [esp + 0xec], ebx
mov dword [esp + 0xf0], 6
mov dword [esp + 0xf4], ebx
mov dword [esp + 0xf8], ebx
mov dword [esp + 0xfc], ebx
mov dword [esp + 0x100], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x138]
call eax
test eax, eax
jge 0x10003658
call fcn.10002260
jmp 0x100033bd
mov eax, dword [esp + 0x18]
lea edi, [ebp + 0x1b4]
push edi
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
lea edx, [esp + 0x68]
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], 3
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x154]
call eax
cmp dword [edi], ebx
je 0x100033bd
mov eax, dword [esp + 0x18]
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa8], esi
mov dword [esp + 0xb8], esi
mov dword [esp + 0xbc], esi
mov dword [esp + 0xc0], esi
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc8], esi
mov dword [esp + 0xcc], esi
mov dword [esp + 0xd0], esi
mov dword [esp + 0xd4], esi
lea esi, [ebp + 0x1b8]
push esi
lea edx, [esp + 0xa8]
mov dword [esp + 0xb0], 4
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xb8], bl
mov byte [esp + 0xb9], bl
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x150]
call eax
cmp dword [esi], ebx
je 0x100033bd
cmp dword [0x10033b50], ebx
jne 0x100037c1
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x38]
mov edx, dword [ebp + 0x34]
dec eax
cmp eax, 4
ja 0x100037a1
push eax
push ecx
mov ebx, 0x14
push edx
lea edx, [ebx + 0x28]
lea esi, [esp + 0x64]
lea edi, [esp + 0x54]
call fcn.1000b7d0
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x48]
xor ebx, ebx
jmp 0x100037a8
call fcn.10002260
mov esi, dword [ebp + 0x1c8]
cmp esi, ebx
je 0x10003796
call fcn.10003c00
mov dword [ebp + 0x1c8], ebx
jmp 0x100033bd
mov esi, 2
mov eax, esi
call fcn.1000f2d0
mov eax, dword [ebp + 0x38]
mov ecx, dword [ebp + 0x34]
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
mov eax, ebp
call fcn.10003c20
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax]
lea esi, [ebp + 0x1bc]
push esi
push ebx
push edx
push eax
mov eax, dword [ecx + 0x130]
call eax
test eax, eax
jl 0x100033bd
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x40]
push edx
push eax
mov eax, dword [ecx + 0xb4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x5c]
push edx
lea edx, [esp + 0x50]
push edx
lea edx, [esp + 0x4c]
push edx
push 1
push ebx
push eax
mov eax, dword [ecx + 0xb8]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x50]
push edx
push eax
mov eax, dword [ecx + 0xc8]
call eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x17c], 3
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
push eax
mov eax, dword [ecx + 0xac]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [ecx + 0xa4]
call eax
mov dword [esp + 0x38], ebx
mov byte [esp + 0x17c], 4
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x38]
push edx
push eax
mov eax, dword [ecx + 0xf0]
call eax
mov dword [esp + 0x20], ebx
lea edx, [esp + 0x60]
push edx
mov byte [esp + 0x180], 5
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [ecx + 0xe8]
call eax
mov dword [esp + 0x34], ebx
lea edx, [esp + 0x3c]
push edx
lea edx, [esp + 0xf8]
push edx
mov byte [esp + 0x184], 6
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x48], ebx
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0xe4]
call eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x30], ebx
mov ecx, dword [eax]
push 1
push eax
mov eax, dword [ecx + 0xe0]
call eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x104]
push edx
lea edx, [esp + 0x58]
mov dword [esp + 0x58], 1
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xf4]
call eax
mov eax, dword [esp + 0x18]
mov edx, dword [ebp + 0x1b0]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x48]
push 5
push eax
call edx
mov eax, dword [esp + 0x18]
mov edx, dword [ebp + 0x1b4]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x74]
call eax
mov eax, dword [esp + 0x18]
mov edx, dword [ebp + 0x1b8]
mov ecx, dword [eax]
push ebx
push edx
push eax
mov eax, dword [ecx + 0x68]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x64]
push 0xffffffffffffffff
push ebx
push ebx
push eax
call edx
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x60]
push ebx
push esi
push 1
push eax
call edx
fldz
mov eax, dword [ebp + 0x34]
fstp dword [esp + 0x9c]
mov ecx, dword [ebp + 0x38]
fld1
mov dword [esp + 0x94], eax
fstp dword [esp + 0xa0]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov edx, dword [eax]
lea ecx, [esp + 0x8c]
mov edx, dword [edx + 0x78]
push ecx
push 1
push eax
call edx
mov eax, dword [esp + 0x18c]
mov ecx, dword [esp + 0x188]
mov edi, dword [esp + 0x18]
push eax
push ecx
push ebp
call fcn.10002ff0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
mov edx, dword [eax]
mov edx, dword [edx + 0x74]
push ecx
push eax
call edx
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x24]
push edx
push eax
mov eax, dword [ecx + 0x68]
call eax
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push edx
lea edx, [esp + 0xf8]
push edx
mov edx, dword [esp + 0x3c]
push edx
push eax
mov eax, dword [ecx + 0x64]
call eax
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push edx
lea edx, [esp + 0x34]
push edx
push 1
push eax
mov eax, dword [ecx + 0x60]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x104]
push edx
push 1
push eax
mov eax, dword [ecx + 0x78]
call eax
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x40]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x5c]
push edx
lea edx, [esp + 0x50]
push edx
lea edx, [esp + 0x4c]
push edx
push 1
push ebx
push eax
mov eax, dword [ecx + 0x30]
call eax
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x50]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x48]
call eax
mov eax, dword [esi]
cmp eax, ebx
je 0x10003ad2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x30]
mov dword [esi], ebx
cmp eax, ebx
je 0x10003ae4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x10003af4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x10003b04
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x10003b14
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x17c], 5
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x10003b2c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x17c], 4
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x10003b44
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x17c], 3
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x10003b5c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x17c], 2
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x10003b74
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x17c], 1
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x10003b8c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x17c], bl
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x10003ba3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x17c], 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x10003bbe
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
jmp 0x10003bde
mov dword [esp + 0x17c], 0xffffffff
cmp eax, ebx
je 0x10003bd9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 0x80070057
mov ecx, dword [esp + 0x174]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x16c
ret 0xc