Function at 0x42cb90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2009c
call fcn.004b79a0
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov byte [esp + 0x18], 0
push edi
test esi, esi
je 0x42ce10
cmp word [esi], 0
je 0x42ce10
mov ecx, dword [0x4e6578]
mov edi, dword [0x4e658c]
cmp ecx, edi
jl 0x42cc74
cmp ecx, 0xffff
jl 0x42cc09
push 0x4b9c40
push str.Too_many_includes.
mov ecx, eax
call fcn.00447e20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
test edi, edi
je 0x42cc1e
add edi, edi
cmp edi, 0xffff
jle 0x42cc23
mov edi, 0xffff
jmp 0x42cc23
mov edi, 0x64
lea eax, [edi*4]
push eax
push dword [0x4e6574]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov edx, eax
add esp, 8
test edx, edx
jne 0x42cc5c
mov ecx, dword [esp + 0x10]
push 0x4b9c40
push 0x4cdb90
call fcn.00447e20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [0x4e6578]
mov eax, dword [esp + 0x10]
mov dword [0x4e6574], edx
mov dword [0x4e658c], edi
jmp 0x42cc7a
mov edx, dword [0x4e6574]
mov edi, dword [ebp + 0x18]
mov ebx, ecx
test edi, edi
je 0x42cd33
test ebx, ebx
jne 0x42cc90
mov dword [edx + ebx*4], esi
jmp 0x42ccee
cmp word [edi], 0
je 0x42cce6
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42cca0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, dword [0x4e6574]
mov edx, eax
add esp, 4
mov dword [ecx + ebx*4], edx
test edx, edx
je 0x42cc40
movzx eax, word [edi]
lea edi, [edi + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x42ccd3
jmp 0x42ccee
mov eax, dword [0x4e865c]
mov dword [edx + ebx*4], eax
mov dword [esp + 0x14], esi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x42ccf5
sub esi, ecx
mov ecx, dword [ebp + 8]
sar esi, 1
push 0x4b0
push 0xc
lea eax, [esi + esi]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push eax
call fcn.0049a1a0
inc dword [0x4e6578]
mov eax, 3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
test ebx, ebx
jne 0x42cd41
mov eax, dword [eax + 0xae0]
mov dword [edx], eax
jmp 0x42cd89
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
push 0x8000
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp byte [ebp + 0x10], 0
jne 0x42cd83
xor edi, edi
test ebx, ebx
jle 0x42cd83
lea eax, [esp + 0x28]
push eax
mov eax, dword [0x4e6574]
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x42cf96
inc edi
cmp edi, ebx
jl 0x42cd63
mov ecx, dword [0x4e6578]
mov edx, dword [0x4e5a54]
test edx, edx
je 0x42cf75
test ecx, ecx
jne 0x42cf75
mov ecx, dword [0x4e64f4]
test ecx, ecx
jne 0x42cdf3
push edx
push dword [0x4e5a50]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esp + 0x18], eax
test eax, eax
je 0x42cdfb
push dword [0x4e5a54]
push dword [0x4e5a50]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42cdfb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x14], eax
test eax, eax
je 0x42cdfb
mov ecx, dword [0x4e64f4]
test ecx, ecx
je 0x42ce31
mov edx, dword [0x4e5a54]
test edx, edx
jne 0x42ce1b
mov dword [esp + 0x18], edx
push 0
push esi
xorps xmm3, xmm3
xor edx, edx
mov ecx, str.Could_not_extract_script_from_EXE.
call fcn.004a25e0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [edx + 4]
mov dword [esp + 0x18], eax
test eax, eax
je 0x42cdfb
mov eax, dword [ecx + 4]
add eax, dword [edx]
mov dword [esp + 0x14], eax
je 0x42cdfb
cmp dword [eax], 0x4034b50
jne 0x42cef5
call fcn.00404b30
test al, al
je 0x42ce10
xor edx, edx
nop dword [eax + eax]
mov eax, dword [edx*4 + 0x4e4234]
lea ecx, [edx + 1]
inc edx
mov word [eax], cx
cmp edx, 0xa
jl 0x42ce50
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x24]
push 0x4e4234
push dword [esp + 0x1c]
call fcn.0049fd70
mov esi, eax
add esp, 8
mov dword [esp + 0x20], esi
test esi, esi
je 0x42cef5
lea edi, [esi + 2]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x1c], 1
push esi
mov esi, dword [esp + 0x28]
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x2c]
add esp, 0xc
mov eax, dword [esp + 0x14]
xor edx, edx
push ecx
mov word [eax + ecx], dx
mov ecx, esi
call fcn.00405e80
add esp, 4
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [esp + 0x18], edi
call fcn.00404b30
test al, al
je 0x42ce10
mov ecx, dword [0x4e5a5c]
call fcn.00426710
mov ecx, dword [0x4e5a58]
call fcn.00426710
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x14]
push 0xfde9
push 0xc
push eax
call fcn.0049a1a0
test ebx, ebx
jle 0x42cf61
lea ecx, [esp + 0x28]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42cf14
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, dword [0x4e6574]
mov edx, eax
add esp, 4
mov dword [ecx + ebx*4], edx
test edx, edx
je 0x42cc40
lea ecx, [esp + 0x28]
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x42cf50
inc dword [0x4e6578]
mov eax, 3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push dword [0x4e5a18]
mov ecx, dword [ebp + 8]
push 0x30c
push esi
call fcn.0049a1a0
test al, al
jne 0x42cf09
cmp byte [ebp + 0x14], al
je 0x42cfa4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp dword [0x4e6578], 0
lea eax, [esp + 0x28]
push eax
mov ecx, str.Script
mov eax, str.Include
cmovle eax, ecx
push eax
push str._s_file___s__cannot_be_opened.
lea eax, [esp + 0x10034]
push 0x8040
push eax
call fcn.0049c650
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x1003c]
add esp, 0x14
push 0x4b9c40
push eax
call fcn.00447e20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14