Function at 0x43c150
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2009c
call fcn.004badd0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
test edi, edi
je 0x43c811
cmp word [edi], 0
je 0x43c811
mov ebx, dword [0x4ef194]
mov eax, dword [0x4efe78]
cmp ebx, eax
jl 0x43c376
cmp ebx, 0xffff
jl 0x43c260
mov ecx, dword [esi + 0x63c]
mov al, byte [0x4f071c]
test ecx, ecx
je 0x43c207
test al, al
je 0x43c207
mov eax, dword [0x4ea828]
cmp dword [eax + 0x34], 0
jne 0x43c1e8
cmp dword [esi + 0x674], 0
jne 0x43c1e8
cmp byte [0x4effe6], 0
jne 0x43c1e8
push 0
push ecx
push 0x4d3ee8
push 0
push str.Too_many_includes.
mov ecx, esi
call fcn.0040d820
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0
push ecx
push 0x4d3ee8
push str.Too_many_includes.
mov ecx, esi
call fcn.0040c540
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp byte [0x4f071f], 0
je 0x43c23e
test al, al
jne 0x43c23e
push dword [esi + 0x278]
movzx eax, word [esi + 0x274]
mov ecx, esi
push eax
push 0x4d3ee8
push str.Too_many_includes.
call fcn.0040cb20
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0
push 0x4d3ee8
push 0
push str.Too_many_includes.
mov ecx, esi
call fcn.0040d820
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
test eax, eax
je 0x43c276
lea ebx, [eax + eax]
cmp ebx, 0xffff
jle 0x43c27b
mov ebx, 0xffff
jmp 0x43c27b
mov ebx, 0x64
lea eax, [ebx*4]
push eax
push dword [0x4ef190]
call fcn.004a45d8
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x43c362
mov ecx, dword [esi + 0x63c]
mov al, byte [0x4f071c]
test ecx, ecx
je 0x43c309
test al, al
je 0x43c309
mov eax, dword [0x4ea828]
cmp dword [eax + 0x34], 0
jne 0x43c2ea
cmp dword [esi + 0x674], 0
jne 0x43c2ea
cmp byte [0x4effe6], 0
jne 0x43c2ea
push 0
push ecx
push 0x4d3ee8
push 0
push str.Out_of_memory.
mov ecx, esi
call fcn.0040d820
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0
push ecx
push 0x4d3ee8
push str.Out_of_memory.
mov ecx, esi
call fcn.0040c540
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp byte [0x4f071f], 0
je 0x43c340
test al, al
jne 0x43c340
push dword [esi + 0x278]
movzx eax, word [esi + 0x274]
mov ecx, esi
push eax
push 0x4d3ee8
push str.Out_of_memory.
call fcn.0040cb20
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0
push 0x4d3ee8
push 0
push str.Out_of_memory.
mov ecx, esi
call fcn.0040d820
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov dword [0x4efe78], ebx
mov ebx, dword [0x4ef194]
mov dword [0x4ef190], ecx
jmp 0x43c37c
mov ecx, dword [0x4ef190]
movzx eax, word [edi]
test ebx, ebx
jne 0x43c395
cmp eax, 0x2a
je 0x43c39a
mov eax, dword [esi + 0x6ac]
mov dword [ecx], eax
jmp 0x43c41c
cmp eax, 0x2a
jne 0x43c3c4
push 0x7fff
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.004afab4
xor eax, eax
add esp, 0xc
mov word [esp + 0x10026], ax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
jmp 0x43c3da
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x2c]
push eax
push 0x8000
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp byte [ebp + 0x10], 0
jne 0x43c410
xor edi, edi
test ebx, ebx
jle 0x43c40d
push 1
push 0xffffffffffffffff
lea eax, [esp + 0x30]
push eax
mov eax, dword [0x4ef190]
push 0xffffffffffffffff
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
sub eax, 2
je 0x43c710
inc edi
cmp edi, ebx
jl 0x43c3e6
mov edi, dword [ebp + 0xc]
mov eax, dword [0x4ef190]
mov dword [eax + ebx*4], 0
cmp word [edi], 0x2a
mov eax, dword [0x4ea834]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov byte [esp + 0x24], 0
jne 0x43c54c
cmp word [edi + 2], 0
lea eax, [edi + 2]
je 0x43c54c
push 0xa
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [esp + 0x10], eax
test eax, eax
je 0x43c54c
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x43c5c3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x43c5c3
push dword [esp + 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push 0x44
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0xfde9
call fcn.004a0b56
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
mov ecx, dword [0x4f0914]
mov dword [edi], vtable.TextStream.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0xffffffff
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
cmp ecx, 0xffffffff
je 0x43c511
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x43c511
mov byte [edi + 0x1a], al
mov eax, dword [ebp + 8]
mov dword [edi], vtable.TextMem.0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov byte [edi + 0x3c], 1
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov byte [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [eax], edi
mov edi, dword [ebp + 0xc]
jmp 0x43c5c6
push 0x38
call fcn.004a0b56
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
mov ecx, dword [0x4f0914]
mov dword [edi], vtable.TextStream.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0xffffffff
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
cmp ecx, 0xffffffff
je 0x43c5ac
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x43c5ac
mov byte [edi + 0x1a], al
mov eax, dword [ebp + 8]
mov dword [edi], vtable.TextFile.0
mov dword [edi + 0x34], 0xffffffff
mov dword [eax], edi
mov edi, dword [ebp + 0xc]
jmp 0x43c5c6
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
test ecx, ecx
je 0x43c70a
push dword [esp + 0x18]
push 0x30c
push dword [esp + 0x1c]
call fcn.00483e40
test al, al
je 0x43c70a
mov ecx, dword [0x4ef190]
cmp dword [ecx + ebx*4], 0
jne 0x43c660
cmp word [esp + 0x28], 0
je 0x43c658
lea edi, [esp + 0x28]
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x43c605
sub edi, ecx
sar edi, 1
lea eax, [edi + edi]
lea ecx, [eax + 2]
mov dword [esp + 0x14], eax
call fcn.004836a0
mov dword [esp + 0x10], eax
test eax, eax
je 0x43c81c
test edi, edi
mov edi, dword [esp + 0x14]
je 0x43c64a
push edi
lea ecx, [esp + 0x2c]
push ecx
push eax
call fcn.004a20f0
mov eax, dword [esp + 0x1c]
add esp, 0xc
xor ecx, ecx
mov word [eax + edi], cx
mov ecx, dword [0x4ef190]
jmp 0x43c65d
mov eax, 0x4d3ee8
mov dword [ecx + ebx*4], eax
inc dword [0x4ef194]
test ebx, ebx
jne 0x43c6c9
push 0xa
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x43c68f
push ebx
push ebx
push 0x4dc240
mov ecx, esi
call fcn.0043c830
test eax, eax
je 0x43c811
mov eax, dword [esi + 0x6d8]
test eax, eax
je 0x43c6ad
push 0
push 0
push eax
mov ecx, esi
call fcn.0043c830
test eax, eax
je 0x43c811
push dword [esi + 0x6b0]
call fcn.00453480
add esp, 4
mov eax, 3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0x28]
push 0x5c
push eax
call fcn.004a1f9e
mov esi, eax
add esp, 8
lea eax, [esp + 0x28]
cmp esi, eax
jbe 0x43c6fc
xor eax, eax
mov word [esi], ax
lea eax, [esp + 0x28]
push eax
call fcn.00453480
mov eax, 0x5c
add esp, 4
mov word [esi], ax
mov eax, 3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp byte [ebp + 0x14], 0
je 0x43c71e
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push edi
mov ecx, str.Script
test ebx, ebx
mov eax, str.Include
cmove eax, ecx
push eax
push str._s_file___s__cannot_be_opened.
lea eax, [esp + 0x10034]
push 0x8040
push eax
call fcn.004868c0
mov ecx, dword [esi + 0x63c]
add esp, 0x14
mov al, byte [0x4f071c]
test ecx, ecx
je 0x43c7bd
test al, al
je 0x43c7bd
mov eax, dword [0x4ea828]
cmp dword [eax + 0x34], 0
jne 0x43c79b
cmp dword [esi + 0x674], 0
jne 0x43c79b
cmp byte [0x4effe6], 0
jne 0x43c79b
push 0
push ecx
push 0x4d3ee8
push 0
lea eax, [esp + 0x10038]
mov ecx, esi
push eax
call fcn.0040d820
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0
push ecx
push 0x4d3ee8
lea eax, [esp + 0x10038]
mov ecx, esi
push eax
call fcn.0040c540
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp byte [0x4f071f], 0
je 0x43c7f7
test al, al
jne 0x43c7f7
push dword [esi + 0x278]
movzx eax, word [esi + 0x274]
mov ecx, esi
push eax
push 0x4d3ee8
lea eax, [esp + 0x10034]
push eax
call fcn.0040cb20
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0
push 0x4d3ee8
push 0
lea eax, [esp + 0x10038]
mov ecx, esi
push eax
call fcn.0040d820
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.0040deb0
int3