Function at 0x40e060
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a07af
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x4d3040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0xd4], eax
cmp dword [eax + 0x38], 0
je 0x40e879
push str.json
push 0x6b
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
mov dword [ebp - 0xe4], esi
test esi, esi
je 0x40e879
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40e0d7
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x40e879
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0x70
mov esi, eax
lea eax, [ebp - 0xc0]
push 0
push eax
call fcn.00484a20
add esp, 0xc
lea ecx, [ebp - 0xc0]
call fcn.00401970
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
push ecx
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 2
push eax
lea eax, [esi + edi]
push eax
push edi
lea ecx, [ebp - 0xc0]
call fcn.00401a70
test al, al
je 0x40e85a
mov eax, dword [ebp - 0x30]
test al, al
je 0x40e155
cmp al, 6
jne 0x40e85a
xor esi, esi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0xe0], esi
call fcn.00405fb0
test eax, eax
je 0x40e85a
nop dword [eax]
xorps xmm0, xmm0
lea ecx, [ebp - 0x38]
push esi
movups xmmword [ebp - 0x28], xmm0
call fcn.00406040
push eax
lea ecx, [ebp - 0x28]
call fcn.00405a10
mov byte [ebp - 4], 3
call fcn.00407220
mov ecx, eax
test ecx, ecx
je 0x40e894
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 4
call fcn.00407220
mov ecx, eax
test ecx, ecx
je 0x40e894
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
push ecx
push 0x4acc74
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.00406330
lea ecx, [ebp - 0x50]
push ecx
mov ecx, eax
call fcn.00405de0
mov edi, eax
mov byte [ebp - 4], 6
cmp dword [edi + 0x14], 0xf
jbe 0x40e1f4
mov edi, dword [edi]
test edi, edi
je 0x40e26c
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0xcc], eax
test eax, eax
je 0x40e26c
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004827b9
mov ecx, dword [ebp - 0xcc]
mov esi, eax
lea ecx, [ecx*2 + 2]
push ecx
push 0
push esi
call fcn.00484a20
add esp, 0x10
push dword [ebp - 0xcc]
push esi
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x40e272
push esi
call fcn.00482102
add esp, 4
xor esi, esi
xor ecx, ecx
jmp 0x40e286
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e277
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x18]
call fcn.00407810
push esi
call fcn.00482102
mov byte [ebp - 4], 5
add esp, 4
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0xf
jbe 0x40e2d1
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e2c7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e89e
push ecx
push edx
call fcn.00482334
add esp, 8
push ecx
push 0x4acc7c
lea ecx, [ebp - 0x28]
call fcn.00406330
mov ecx, eax
call fcn.00405f00
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xd4]
push 0x8c
mov eax, dword [eax + 0x38]
mov dword [ebp - 0xcc], eax
call fcn.00482304
mov esi, dword [ebp - 0x18]
mov edx, eax
xor eax, eax
mov dword [ebp - 0xd0], edx
lea ecx, [edx + 4]
add esp, 4
mov word [ecx], ax
mov dword [edx], ecx
mov dword [edx + 0x84], eax
mov byte [edx + 0x88], al
test esi, esi
je 0x40e3a8
mov edi, esi
lea eax, [edi + 2]
mov dword [ebp - 0xc8], eax
nop dword [eax + eax]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x40e340
sub edi, dword [ebp - 0xc8]
sar edi, 1
cmp edi, 0x3f
jl 0x40e38d
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e360
lea eax, [edi*2 + 2]
mov dword [edx], 0
push eax
push 0
call fcn.0048ff58
mov edx, dword [ebp - 0xd0]
mov ecx, eax
add esp, 8
mov dword [edx], ecx
push edi
push esi
push ecx
call fcn.0048df2f
mov edx, dword [ebp - 0xd0]
add esp, 0xc
xor ecx, ecx
mov eax, dword [edx]
mov word [eax + edi*2], cx
jmp 0x40e3af
xor eax, eax
mov dword [edx], ecx
mov word [ecx], ax
mov edi, dword [ebp - 0xcc]
mov eax, dword [ebp - 0xc4]
add edi, 0xa34
mov dword [edx + 0x84], eax
cmp dword [edi + 4], 0x15555555
mov eax, dword [edi]
mov dword [ebp - 0xc4], eax
je 0x40e8a3
mov dword [ebp - 0xfc], edi
mov byte [ebp - 4], 7
push 0xc
mov dword [ebp - 0xf8], 0
call fcn.00482304
mov edx, dword [ebp - 0xd0]
mov byte [ebp - 4], 5
mov dword [ebp - 0xf8], 0
mov dword [eax + 8], edx
mov edx, dword [ebp - 0xc4]
inc dword [edi + 4]
mov ecx, dword [edx + 4]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov dword [edx + 4], eax
mov dword [ecx], eax
mov eax, dword [ebp - 0xcc]
lea ecx, [ebp - 0x28]
push str.code
inc dword [eax + 0xa40]
call fcn.00406330
lea ecx, [ebp - 0x50]
push ecx
mov ecx, eax
call fcn.00405de0
mov dword [ebp - 0xc8], eax
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 0xf
jbe 0x40e460
mov eax, dword [eax]
mov dword [ebp - 0xc8], eax
test eax, eax
je 0x40e4dd
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0xcc], eax
test eax, eax
je 0x40e4dd
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004827b9
mov ecx, dword [ebp - 0xcc]
mov edi, eax
lea ecx, [ecx*2 + 2]
push ecx
push 0
push edi
call fcn.00484a20
add esp, 0x10
push dword [ebp - 0xcc]
push edi
push 0xffffffffffffffff
push dword [ebp - 0xc8]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x40e4e3
push edi
call fcn.00482102
add esp, 4
xor edi, edi
xor ecx, ecx
jmp 0x40e4ff
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e4f0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x14]
call fcn.00407810
push edi
call fcn.00482102
mov byte [ebp - 4], 5
add esp, 4
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0xf
jbe 0x40e54a
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e540
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e89e
push ecx
push edx
call fcn.00482334
add esp, 8
push ecx
lea ecx, [ebp - 0xd8]
call fcn.0040f980
push ecx
push 0x4acc7c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xb
call fcn.00406330
mov ecx, eax
call fcn.00405f00
mov dword [ebp - 0xe8], eax
lea edx, [ebp - 0x14]
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0xec]
call fcn.0040f800
add esp, 4
mov edi, eax
mov eax, dword [ebp - 0xd4]
lea ecx, [ebp - 0xe8]
push ecx
mov byte [ebp - 4], 0xc
lea ecx, [eax + 0x40]
call fcn.0040f720
mov edx, dword [edi]
mov ecx, eax
mov dword [ebp - 0xc8], ecx
mov edi, dword [ecx]
lea eax, [edx - 0x10]
sub edi, 0x10
mov dword [ebp - 0xc4], eax
cmp eax, edi
je 0x40e615
cmp dword [edi + 0xc], 0
jl 0x40e60c
mov eax, dword [edx - 0x10]
cmp eax, dword [edi]
jne 0x40e60c
mov ecx, dword [ebp - 0xc4]
call fcn.00407720
mov dword [ebp - 0xc4], eax
lea edx, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e5ff
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0xc8]
add eax, 0x10
mov dword [ecx], eax
jmp 0x40e615
push dword [edx - 0xc]
push edx
call fcn.00407810
mov byte [ebp - 4], 0xb
or eax, 0xffffffff
mov edx, dword [ebp - 0xec]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e637
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
or eax, 0xffffffff
mov edx, dword [ebp - 0xd8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e659
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
push 0x4acc90
lea ecx, [ebp - 0x28]
call fcn.00406330
cmp byte [eax + 8], 0
je 0x40e7f6
push ecx
push 0x4acc90
lea ecx, [ebp - 0x28]
call fcn.00406330
mov al, byte [eax + 8]
test al, al
je 0x40e68e
cmp al, 6
jne 0x40e7f6
push ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x28]
push 0x4acc90
movups xmmword [ebp - 0x48], xmm0
call fcn.00406330
push eax
lea ecx, [ebp - 0x48]
call fcn.00405a10
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xd
mov dword [ebp - 0xc4], 0
call fcn.00405fb0
test eax, eax
je 0x40e7ee
mov esi, dword [ebp - 0xc4]
push ecx
lea ecx, [ebp - 0xdc]
call fcn.0040f980
push esi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xe
call fcn.00406040
mov ecx, eax
call fcn.00405f00
mov dword [ebp - 0xf0], eax
lea edx, [ebp - 0x14]
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0xf4]
call fcn.0040f800
add esp, 4
mov edi, eax
mov ecx, dword [ebp - 0xd4]
lea eax, [ebp - 0xf0]
push eax
mov byte [ebp - 4], 0xf
lea ecx, [ecx + 0x40]
call fcn.0040f720
mov edx, dword [edi]
mov ecx, eax
mov dword [ebp - 0xc8], ecx
mov edi, dword [ecx]
lea eax, [edx - 0x10]
sub edi, 0x10
mov dword [ebp - 0xc4], eax
cmp eax, edi
je 0x40e796
cmp dword [edi + 0xc], 0
jl 0x40e78d
mov eax, dword [edx - 0x10]
cmp eax, dword [edi]
jne 0x40e78d
mov ecx, dword [ebp - 0xc4]
call fcn.00407720
mov dword [ebp - 0xc4], eax
lea edx, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e780
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0xc8]
add eax, 0x10
mov dword [ecx], eax
jmp 0x40e796
push dword [edx - 0xc]
push edx
call fcn.00407810
mov byte [ebp - 4], 0xe
or eax, 0xffffffff
mov edx, dword [ebp - 0xf4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e7b8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xd
or eax, 0xffffffff
mov edx, dword [ebp - 0xdc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e7da
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x28]
inc esi
call fcn.00405fb0
cmp esi, eax
jb 0x40e6d0
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x48]
call fcn.00405c30
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e815
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40e831
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00405c30
mov esi, dword [ebp - 0xe0]
lea ecx, [ebp - 0x38]
inc esi
mov dword [ebp - 0xe0], esi
call fcn.00405fb0
cmp esi, eax
jb 0x40e170
push dword [ebp - 0xe4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0x38]
call fcn.00405c30
lea ecx, [ebp - 0xc0]
call fcn.004043a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004820f4
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00406f60
call fcn.0048d4ff
push str.list_too_long
call fcn.00481ed8
int3