Function at 0x409af0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x434a81
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x52a310]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [0x52bf84]
cmp dword [esi + 0x30], 0
jne 0x409b80
push 0xa
push 1
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x409b66
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x409b66
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi + 0x34], eax
test eax, eax
je 0x409b66
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esi + 0x30], eax
test eax, eax
jne 0x409b80
mov dword [esi + 0x34], 0
mov dword [esi + 0x30], 0
mov dword [ebp - 0x74], 1
jmp 0x409fbc
push dword [esi + 0x30]
mov ecx, esi
call fcn.00409a40
lea ebx, [eax + 4]
mov ecx, ebx
mov dword [ebp - 0x80], ebx
and ecx, 0x8000000f
jns 0x409ba1
dec ecx
or ecx, 0xfffffff0
add ecx, 1
je 0x409bb6
mov eax, ebx
cdq
and edx, 0xf
lea ebx, [edx + eax]
sar ebx, 4
inc ebx
shl ebx, 4
mov dword [ebp - 0x80], ebx
push ebx
call fcn.0040afe0
push ebx
push dword [esi + 0x30]
mov dword [ebp - 0x84], eax
push eax
call fcn.0040cf10
mov edi, dword [esi + 4]
lea ecx, [ebp - 0x30]
mov eax, ecx
mov byte [ebp - 0x75], 1
add esp, 0x10
mov edx, 0x20
sub edi, eax
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
mov byte [ecx - 0x21], al
sub edx, 1
jne 0x409be2
mov bl, 7
lea edx, [ebp - 0x75]
lea ecx, [ebp - 0x30]
call fcn.004085d0
add bl, 0xff
jne 0x409bf5
mov eax, dword [ebp - 0x80]
mov edi, dword [ebp - 0x84]
cdq
and edx, 0xf
lea ebx, [edx + eax]
sar ebx, 4
test ebx, ebx
jle 0x409c32
nop dword [eax]
mov edx, edi
lea ecx, [ebp - 0x70]
call fcn.004086e0
add edi, 0x10
sub ebx, 1
jne 0x409c20
lea eax, [ebp - 0x50]
mov ecx, 0x20
nop word [eax + eax]
mov byte [eax + 0x20], 0
lea eax, [eax + 1]
mov byte [eax - 1], 0
mov byte [eax - 0x21], 0
sub ecx, 1
jne 0x409c40
push 8
call fcn.0040af70
mov ebx, eax
mov dword [ebp - 0x7c], ebx
push 0x80
mov dword [ebp - 4], 0
call fcn.0040af70
mov edi, eax
mov dword [ebp - 0x74], edi
push 0x10
mov byte [ebp - 4], 1
call fcn.0040af70
mov ecx, dword [ebp - 0x84]
add esp, 0xc
mov dword [ebp - 0x7c], eax
add ecx, 4
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x80]
add ecx, 0xfffffffc
mov dword [eax], vtable.MemoryStream.0
push 0xffffffffffffffff
mov dword [eax + 8], ecx
mov ecx, edi
mov dword [eax + 0xc], 0
push dword [esi + 4]
push eax
call fcn.0040ade0
mov dword [ebx + 4], eax
mov ecx, ebx
lea eax, [esi + 0xc]
mov dword [ebx], vtable.Reader.0
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.0040aaa0
mov edi, eax
mov dword [ebp - 0x74], edi
test edi, edi
jne 0x409fb4
lea eax, [esi + 0x10]
mov ecx, ebx
push eax
call fcn.0040aaa0
mov edi, eax
mov dword [ebp - 0x74], edi
test edi, edi
jne 0x409fb4
lea eax, [esi + 8]
mov ecx, ebx
push eax
call fcn.0040aaa0
mov edi, eax
mov dword [ebp - 0x74], edi
test edi, edi
jne 0x409fb4
mov ecx, dword [ebx + 4]
lea edx, [ebp - 0x74]
push edx
mov dword [ebp - 0x74], eax
lea edi, [esi + 0x18]
push 4
mov eax, dword [ecx]
push edi
call dword [eax]
cmp dword [ebp - 0x74], 4
jne 0x409fad
mov eax, dword [edi]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040afe0
mov ecx, dword [edi]
shl ecx, 2
push ecx
push 0
push eax
mov dword [esi + 0x1c], eax
call fcn.0040daa0
add esp, 0x10
cmp dword [esi + 0x1c], 0
je 0x409fad
xor edi, edi
cmp dword [esi + 0x18], edi
jle 0x409d9c
nop dword [eax]
push 0x34
call fcn.0040af70
add esp, 4
mov dword [ebp - 0x7c], eax
mov ecx, eax
call fcn.0040a5f0
mov edx, dword [esi + 0x1c]
push ebx
mov dword [edx + edi*4], eax
mov ecx, dword [esi + 0x1c]
mov ecx, dword [ecx + edi*4]
call fcn.0040a730
inc edi
cmp edi, dword [esi + 0x18]
jl 0x409d70
mov ecx, dword [ebx + 4]
lea edx, [ebp - 0x74]
push edx
mov dword [ebp - 0x74], 0
lea edi, [esi + 0x20]
push 4
mov eax, dword [ecx]
push edi
call dword [eax]
cmp dword [ebp - 0x74], 4
jne 0x409fad
mov eax, dword [edi]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040afe0
mov ecx, dword [edi]
shl ecx, 2
push ecx
push 0
push eax
mov dword [esi + 0x24], eax
call fcn.0040daa0
add esp, 0x10
cmp dword [esi + 0x24], 0
je 0x409fad
cmp dword [edi], 0
mov dword [ebp - 0x74], 0
jle 0x409eb8
xor edi, edi
push 0x14
call fcn.0040af70
mov dword [ebp - 0x7c], eax
add esp, 4
mov dword [ebp - 0x7c], 0
mov dword [eax], vtable.FileDescriptor.0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov ecx, dword [esi + 0x24]
mov dword [ecx + edi*4], eax
mov eax, dword [esi + 0x24]
mov ecx, dword [ebx + 4]
mov edi, dword [eax + edi*4]
lea eax, [ebp - 0x7c]
mov edx, dword [ecx]
push eax
push 4
lea eax, [edi + 4]
push eax
call dword [edx]
lea eax, [edi + 8]
mov ecx, ebx
push eax
call fcn.0040aaa0
lea eax, [edi + 0xc]
mov ecx, ebx
push eax
call fcn.0040aaa0
push 0x14
call fcn.0040af70
mov dword [ebp - 0x7c], eax
add esp, 4
mov ecx, eax
mov dword [eax], vtable.BinaryDescriptor.0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov word [eax + 0x10], 0
push ebx
mov dword [edi + 0x10], eax
call fcn.0040a540
mov edi, dword [ebp - 0x74]
inc edi
mov dword [ebp - 0x74], edi
cmp edi, dword [esi + 0x20]
jl 0x409e06
mov ecx, dword [ebx + 4]
lea edx, [ebp - 0x74]
push edx
mov dword [ebp - 0x74], 0
lea edi, [esi + 0x28]
push 4
mov eax, dword [ecx]
push edi
call dword [eax]
cmp dword [ebp - 0x74], 4
jne 0x409fad
mov eax, dword [edi]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040afe0
mov ecx, dword [edi]
shl ecx, 2
push ecx
push 0
push eax
mov dword [esi + 0x2c], eax
call fcn.0040daa0
add esp, 0x10
cmp dword [esi + 0x2c], 0
je 0x409fad
xor edi, edi
mov dword [ebp - 0x74], edi
cmp dword [esi + 0x28], edi
jle 0x409f85
nop word [eax + eax]
push 0xc
call fcn.0040af70
mov dword [ebp - 0x88], eax
add esp, 4
mov dword [ebp - 0x88], 0
mov dword [eax], vtable.RegisterComComponentDescriptor.0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov ecx, dword [esi + 0x2c]
mov dword [ecx + edi*4], eax
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebx + 4]
mov edi, dword [eax + edi*4]
lea eax, [ebp - 0x88]
mov edx, dword [ecx]
push eax
push 4
lea eax, [edi + 4]
push eax
call dword [edx]
lea eax, [edi + 8]
mov ecx, ebx
push eax
call fcn.0040aaa0
mov edi, dword [ebp - 0x74]
inc edi
mov dword [ebp - 0x74], edi
cmp edi, dword [esi + 0x28]
jl 0x409f20
mov eax, dword [ebp - 0x80]
mov ecx, ebx
mov dword [esi + 0x14], eax
mov eax, dword [ebx]
push 1
call dword [eax]
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x409fa6
push eax
call fcn.00410970
add esp, 4
xor eax, eax
jmp 0x40a095
mov dword [ebp - 0x74], 1
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
mov eax, dword [esi + 8]
test eax, eax
je 0x409fd3
push eax
call fcn.00410970
add esp, 4
mov dword [esi + 8], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x409fea
push eax
call fcn.00410970
add esp, 4
mov dword [esi + 0xc], 0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x40a001
push eax
call fcn.00410970
add esp, 4
mov dword [esi + 0x10], 0
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x40a03d
xor edi, edi
cmp dword [esi + 0x18], edi
jle 0x40a029
nop
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x40a023
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esi + 0x1c]
inc edi
cmp edi, dword [esi + 0x18]
jl 0x40a010
test eax, eax
je 0x40a03d
push eax
call fcn.00410970
add esp, 4
mov dword [esi + 0x1c], 0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x40a07d
xor edi, edi
cmp dword [esi + 0x20], edi
jle 0x40a069
nop dword [eax + eax]
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x40a063
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esi + 0x24]
inc edi
cmp edi, dword [esi + 0x20]
jl 0x40a050
test eax, eax
je 0x40a07d
push eax
call fcn.00410970
add esp, 4
mov dword [esi + 0x24], 0
mov eax, dword [ebp - 0x74]
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x14], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040af50
mov esp, ebp
pop ebp
ret