Function at 0x420d10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x260
push ebx
mov ebx, dword [esp + 0x270]
push ebp
push esi
push edi
test ebx, ebx
je 0x42105e
cmp byte [ebx], 0
je 0x42105e
mov edi, dword [0x4bc350]
mov eax, dword [0x4bc34c]
cmp edi, eax
jl 0x420dd4
cmp edi, 0xffff
jl 0x420d70
mov ecx, dword [esp + 0x274]
push 0x4a7935
push str.Too_many_includes.
call fcn.0043b430
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x260
ret 0x14
test eax, eax
je 0x420d86
lea esi, [eax + eax]
cmp esi, 0xffff
jle 0x420d8b
mov esi, 0xffff
jmp 0x420d8b
mov esi, 0x64
mov ecx, dword [0x4bc348]
lea eax, [esi*4]
push eax
push ecx
call fcn.00492d6d
add esp, 8
test eax, eax
jne 0x420dc9
mov ecx, dword [esp + 0x274]
push 0x4a7935
push str.Out_of_memory.
call fcn.0043b430
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x260
ret 0x14
mov dword [0x4bc348], eax
mov dword [0x4bc34c], esi
mov ebp, edi
test ebp, ebp
jne 0x420df9
cmp byte [ebx], 0x2a
je 0x420dfe
mov edx, dword [esp + 0x274]
mov eax, dword [edx + 0x600]
mov ecx, dword [0x4bc348]
mov dword [ecx], eax
jmp 0x420e7c
cmp byte [ebx], 0x2a
jne 0x420e26
push 0x103
lea edx, [esp + 0x24]
push ebx
push edx
call fcn.00495b20
add esp, 0xc
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x127], 0
call dword [sym.imp.USER32.dll_CharUpperA]
jmp 0x420e3c
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
cmp byte [esp + 0x280], 0
jne 0x420e70
xor esi, esi
test ebp, ebp
jle 0x420e70
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov ecx, dword [0x4bc348]
mov edx, dword [ecx + esi*4]
lea eax, [esp + 0x20]
push eax
push edx
call edi
test eax, eax
je 0x420f0c
inc esi
cmp esi, ebp
jl 0x420e52
mov eax, dword [0x4bc348]
mov dword [eax + ebp*4], 0
mov edi, ebx
mov ebx, dword [0x4bb420]
xor ecx, ecx
mov eax, edi
cmp byte [eax], 0x2a
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov byte [esp + 0x18], cl
jne 0x420f2b
inc eax
cmp byte [eax], cl
je 0x420f2b
push 0xa
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x420f2b
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x420f4d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x10], eax
test eax, eax
je 0x420f4d
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0x44
mov dword [esp + 0x18], eax
lea edi, [esp + 0x14]
mov ebx, 0xfde9
call fcn.00493372
add esp, 4
test eax, eax
je 0x420f1e
mov esi, eax
call fcn.0041f000
mov ecx, dword [esp + 0x278]
mov dword [ecx], eax
jmp 0x420f4d
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x260
ret 0x14
mov ecx, dword [esp + 0x278]
xor eax, eax
mov dword [ecx], eax
jmp 0x420f4d
push 0x38
call fcn.00493372
add esp, 4
test eax, eax
je 0x420f42
mov esi, eax
call fcn.00404130
jmp 0x420f44
xor eax, eax
mov edx, dword [esp + 0x278]
mov dword [edx], eax
mov eax, dword [esp + 0x278]
mov ecx, dword [eax]
test ecx, ecx
je 0x420fff
push 0x30c
mov eax, ebx
mov edx, edi
call fcn.0047cde0
test al, al
je 0x420fff
mov ecx, dword [0x4bc348]
cmp dword [ecx + ebp*4], 0
jne 0x420f9d
or ecx, 0xffffffff
lea ebx, [esp + 0x20]
call fcn.0047c2d0
mov edx, dword [0x4bc348]
mov dword [edx + ebp*4], eax
test eax, eax
je 0x420da6
inc dword [0x4bc350]
test ebp, ebp
jne 0x420fed
push 0xa
push 2
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, dword [esp + 0x274]
test eax, eax
je 0x420fd3
push ebp
push ebp
push 0x4ab974
mov ecx, esi
call fcn.00421070
test eax, eax
je 0x42105e
mov eax, dword [esi + 0x628]
test eax, eax
je 0x420fed
push 0
push 0
push eax
mov ecx, esi
call fcn.00421070
test eax, eax
je 0x42105e
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x260
ret 0x14
cmp byte [esp + 0x284], 0
jne 0x420f0c
mov eax, str.Include
test ebp, ebp
jne 0x42101b
mov eax, str.Script
mov ecx, dword [esp + 0x27c]
push ecx
push eax
push str._s_file___s__cannot_be_opened.
mov esi, 0x144
lea edi, [esp + 0x134]
call fcn.0047f340
mov ecx, dword [esp + 0x280]
add esp, 0xc
push 0x4a7935
mov edx, edi
push edx
call fcn.0043b430
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x260
ret 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x260
ret 0x14