Function at 0x40c9a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ca3f
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x4d0018]
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 0x40d05b
push str.json
push 0x6b
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
mov dword [ebp - 0xf4], esi
test esi, esi
je 0x40d05b
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40ca17
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x40d05b
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.00481670
add esp, 0xc
lea ecx, [ebp - 0xc0]
call fcn.00401940
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.00401a40
test al, al
je 0x40d03c
mov eax, dword [ebp - 0x30]
test al, al
je 0x40ca95
cmp al, 6
jne 0x40d03c
xor esi, esi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0xe0], esi
call fcn.004057e0
test eax, eax
je 0x40d03c
nop dword [eax]
xorps xmm0, xmm0
lea ecx, [ebp - 0x38]
push esi
movups xmmword [ebp - 0x28], xmm0
call fcn.00405870
push eax
lea ecx, [ebp - 0x28]
call fcn.00405240
mov byte [ebp - 4], 3
call fcn.00406aa0
mov ecx, eax
test ecx, ecx
je 0x40d076
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.00406aa0
mov ecx, eax
test ecx, ecx
je 0x40d076
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
push ecx
push 0x4acd24
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.00405b00
lea ecx, [ebp - 0x50]
push ecx
mov ecx, eax
call fcn.00405610
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 0x10
jb 0x40cb32
mov eax, dword [eax]
mov ecx, eax
call fcn.00406de0
mov esi, eax
test esi, esi
jne 0x40cb43
xor ecx, ecx
jmp 0x40cb5f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cb50
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x18]
call fcn.00406e90
push esi
call fcn.0047ecd0
mov byte [ebp - 4], 5
add esp, 4
mov edx, dword [ebp - 0x3c]
cmp edx, 0x10
jb 0x40cbaa
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cba0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d080
push edx
push ecx
call fcn.0047ef02
add esp, 8
push ecx
push 0x4acd2c
lea ecx, [ebp - 0x28]
call fcn.00405b00
mov ecx, eax
call fcn.00405730
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xd4]
push 0x8c
mov eax, dword [eax + 0x38]
mov dword [ebp - 0xd0], eax
call fcn.0047eed2
mov esi, dword [ebp - 0x18]
mov edx, eax
xor eax, eax
mov dword [ebp - 0xc4], edx
lea ecx, [edx + 4]
add esp, 4
mov word [ecx], ax
mov dword [edx], ecx
mov dword [ebp - 0xc8], ecx
mov dword [edx + 0x84], eax
mov byte [edx + 0x88], al
test esi, esi
je 0x40ccc0
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 0x40cc20
sub edi, dword [ebp - 0xc8]
sar edi, 1
cmp edi, 0x3f
jge 0x40cc52
mov eax, ecx
cmp eax, ecx
je 0x40cca4
push eax
call fcn.00485257
mov edx, dword [ebp - 0xc4]
add esp, 4
lea eax, [edx + 4]
jmp 0x40cca2
lea eax, [ecx + 2]
mov dword [ebp - 0xc8], eax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cc60
sub ecx, dword [ebp - 0xc8]
lea eax, [edx + 4]
sar ecx, 1
cmp edi, ecx
mov ecx, dword [edx]
jg 0x40cc80
cmp ecx, eax
jne 0x40cca4
cmp ecx, eax
jne 0x40cc8a
mov dword [edx], 0
lea eax, [edi*2 + 2]
push eax
push dword [edx]
call fcn.0048c924
mov edx, dword [ebp - 0xc4]
add esp, 8
mov dword [edx], eax
push edi
push esi
push dword [edx]
call fcn.0048b8ad
mov edx, dword [ebp - 0xc4]
add esp, 0xc
xor ecx, ecx
mov eax, dword [edx]
mov word [eax + edi*2], cx
jmp 0x40cce2
mov eax, ecx
cmp eax, ecx
je 0x40ccdb
push eax
call fcn.00485257
mov edx, dword [ebp - 0xc4]
add esp, 4
mov ecx, dword [ebp - 0xc8]
xor eax, eax
mov dword [edx], ecx
mov word [ecx], ax
mov edi, dword [ebp - 0xd0]
mov eax, dword [ebp - 0xcc]
add edi, 0xa34
mov dword [edx + 0x84], eax
cmp dword [edi + 4], 0x15555555
mov eax, dword [edi]
mov dword [ebp - 0xcc], eax
je 0x40d085
mov dword [ebp - 0xfc], edi
mov byte [ebp - 4], 7
push 0xc
mov dword [ebp - 0xf8], 0
call fcn.0047eed2
mov edx, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0xc4]
mov byte [ebp - 4], 5
mov dword [eax + 8], ecx
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 [ebp - 0xf8], 0
mov dword [ecx], eax
mov eax, dword [ebp - 0xd0]
lea ecx, [ebp - 0x28]
push str.code
inc dword [eax + 0xa40]
call fcn.00405b00
lea ecx, [ebp - 0x50]
push ecx
mov ecx, eax
call fcn.00405610
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 0x10
jb 0x40cd87
mov eax, dword [eax]
mov ecx, eax
call fcn.00406de0
mov edi, eax
test edi, edi
jne 0x40cd98
xor ecx, ecx
jmp 0x40cdaf
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cda0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x14]
call fcn.00406e90
push edi
call fcn.0047ecd0
mov byte [ebp - 4], 5
add esp, 4
mov edx, dword [ebp - 0x3c]
cmp edx, 0x10
jb 0x40cdfa
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cdf0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d080
push edx
push ecx
call fcn.0047ef02
add esp, 8
push ecx
lea ecx, [ebp - 0xd8]
call fcn.0040e030
push ecx
push 0x4acd2c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xb
call fcn.00405b00
mov ecx, eax
call fcn.00405730
mov dword [ebp - 0xe4], eax
lea edx, [ebp - 0x14]
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0xe8]
call fcn.0040deb0
add esp, 4
mov ecx, dword [ebp - 0xd4]
push eax
lea eax, [ebp - 0xe4]
mov byte [ebp - 4], 0xc
add ecx, 0x40
push eax
mov dword [ebp - 0xcc], ecx
call fcn.0040dda0
mov ecx, eax
call fcn.0040df70
mov byte [ebp - 4], 0xb
or eax, 0xffffffff
mov edx, dword [ebp - 0xe8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ce86
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 0x40cea8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
push 0x4acd40
lea ecx, [ebp - 0x28]
call fcn.00405b00
cmp byte [eax + 8], 0
je 0x40cfd8
push ecx
push 0x4acd40
lea ecx, [ebp - 0x28]
call fcn.00405b00
mov al, byte [eax + 8]
test al, al
je 0x40cedd
cmp al, 6
jne 0x40cfd8
push ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x28]
push 0x4acd40
movups xmmword [ebp - 0x48], xmm0
call fcn.00405b00
push eax
lea ecx, [ebp - 0x48]
call fcn.00405240
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xd
xor edi, edi
call fcn.004057e0
test eax, eax
je 0x40cfd0
mov esi, dword [ebp - 0xcc]
nop word [eax + eax]
push ecx
lea ecx, [ebp - 0xdc]
call fcn.0040e030
push edi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xe
call fcn.00405870
mov ecx, eax
call fcn.00405730
mov dword [ebp - 0xec], eax
lea edx, [ebp - 0x14]
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0xf0]
call fcn.0040deb0
add esp, 4
push eax
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 0xf
push eax
mov ecx, esi
call fcn.0040dda0
mov ecx, eax
call fcn.0040df70
mov byte [ebp - 4], 0xe
or eax, 0xffffffff
mov edx, dword [ebp - 0xf0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40cf9a
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 0x40cfbc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x28]
inc edi
call fcn.004057e0
cmp edi, eax
jb 0x40cf20
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x48]
call fcn.00405460
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 0x40cff7
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 0x40d013
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.00405460
mov esi, dword [ebp - 0xe0]
lea ecx, [ebp - 0x38]
inc esi
mov dword [ebp - 0xe0], esi
call fcn.004057e0
cmp esi, eax
jb 0x40cab0
push dword [ebp - 0xf4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0x38]
call fcn.00405460
lea ecx, [ebp - 0xc0]
call fcn.00403cc0
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.0047ecc2
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00406890
call fcn.00489d37
push str.list_too_long
call fcn.0047eb77
int3