Function at 0x40c6e1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x52c
mov eax, dword [ebp + 0xc]
push ebx
shl eax, 2
push esi
push edi
mov ecx, dword [eax + 0x42cc00]
mov edi, dword [eax + 0x42e760]
mov dword [ebp - 8], ecx
mov ecx, dword [eax + 0x42e7a0]
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 0x42e4b0]
xor ebx, ebx
mov dword [ebp - 0xc], edi
cmp ecx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x130], bl
je 0x40c74f
cmp ecx, 1
jne 0x40c73f
cmp byte [0x42cfa0], bl
jne 0x40c74f
cmp dword [0x42b594], ebx
jne 0x40c74f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
cmp dword [0x42b594], ebx
jne 0x40c738
cmp byte [0x42cfa0], bl
jne 0x40c738
mov eax, dword [eax + 0x42e4d8]
cmp eax, ebx
je 0x40c7dd
cmp eax, 1
jne 0x40c76c
cmp dword [0x42cc30], eax
je 0x40c7dd
jmp 0x40c738
cmp eax, 2
jne 0x40c779
cmp dword [0x42cc30], eax
jmp 0x40c768
push 3
pop ecx
cmp eax, ecx
jne 0x40c78b
cmp dword [0x42cc30], 2
jle 0x40c7dd
jmp 0x40c738
cmp eax, 4
jne 0x40c798
cmp dword [0x42cc30], ecx
jmp 0x40c768
cmp eax, 5
jne 0x40c7a6
cmp dword [0x42cc30], 4
jmp 0x40c768
cmp eax, 6
je 0x40c7d1
cmp eax, 7
jne 0x40c7b9
cmp dword [0x42cc30], 5
jmp 0x40c768
cmp eax, 8
je 0x40c7d1
cmp eax, 9
jne 0x40c7cc
cmp dword [0x42cc30], 6
jmp 0x40c768
cmp eax, 0xa
jne 0x40c7dd
cmp dword [0x42cc30], ecx
jl 0x40c738
push 0x30c
call fcn.0041b1a2
mov esi, eax
pop ecx
mov byte [esi], bl
cmp byte [edi], bl
jne 0x40ca01
mov eax, dword [ebp - 8]
cmp byte [eax], bl
je 0x40ca01
mov edi, eax
push 0x3c
push edi
call fcn.0041c440
pop ecx
pop ecx
test eax, eax
push edi
je 0x40c841
call fcn.00405803
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.0041bb30
push 0x5c
push edi
call fcn.0041c440
add esp, 0x14
cmp eax, ebx
je 0x40c84f
inc eax
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.00405453
jmp 0x40c84d
lea eax, [ebp - 0x234]
push eax
call fcn.0041bb30
pop ecx
pop ecx
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x52c]
push eax
push dword [ebp + 8]
call fcn.00403bc9
add esp, 0xc
cmp dword [ebp + 0x10], ebx
je 0x40c9b8
lea eax, [ebp - 0x130]
push 0x42e900
push eax
call fcn.0041bb30
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.00405453
lea eax, [ebp - 0x130]
push str..cab
push eax
call fcn.0041bb40
lea eax, [ebp - 0x130]
push 0x427854
push eax
call fcn.0041c744
add esp, 0x20
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40c738
push dword [ebp + 0xc]
lea eax, [ebp - 0x2c]
push str.IDR_EMBEDDATA
push str._s_u
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x2c]
push eax
push 0x2710
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp edi, ebx
mov dword [ebp - 0x14], eax
je 0x40c9a2
cmp eax, ebx
je 0x40c9a2
cmp dword [ebp - 0x10], ebx
je 0x40c9a2
push dword [ebp - 4]
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push 1
push dword [ebp - 0x14]
call fcn.0041cbeb
push dword [ebp - 4]
call fcn.0041c634
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea eax, [ebp - 0x130]
push eax
call fcn.0041445a
test eax, eax
pop ecx
je 0x40c738
lea eax, [ebp - 0x130]
push eax
call fcn.0041c055
lea eax, [ebp - 0x130]
mov dword [esp], 0x42ee00
push eax
call fcn.0041bb30
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.0041bb30
push 0x42e900
push dword [ebp + 8]
call fcn.0041bb30
add esp, 0x18
jmp 0x40c9b8
push dword [ebp - 4]
call fcn.0041c634
lea eax, [ebp - 0x130]
push eax
call fcn.0041c055
pop ecx
pop ecx
lea eax, [ebp - 0x234]
push eax
push esi
call fcn.0041bb30
lea eax, [ebp - 0x234]
push esi
push eax
call fcn.0040c60d
add esp, 0x10
test eax, eax
jne 0x40c9ea
push esi
lea eax, [ebp - 0x234]
push dword [ebp + 8]
push eax
call dword [sym.imp.SHELL32.dll_FindExecutableA]
push 4
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push esi
call fcn.0041c080
mov edi, dword [ebp - 0xc]
pop ecx
mov dword [ebp - 4], eax
mov al, byte [edi]
cmp al, bl
jne 0x40ca1a
mov ecx, dword [ebp - 8]
cmp byte [ecx], bl
je 0x40c738
cmp al, bl
je 0x40cbc2
push 0x3c
push edi
call fcn.0041c440
pop ecx
pop ecx
test eax, eax
push edi
je 0x40ca4e
call fcn.00405803
push eax
push esi
call fcn.0041bb30
push 0x5c
push edi
call fcn.0041c440
add esp, 0x14
cmp eax, ebx
je 0x40ca56
inc eax
push eax
push esi
call fcn.00405453
jmp 0x40ca54
push esi
call fcn.0041bb30
pop ecx
pop ecx
push esi
call fcn.0041c080
mov dword [ebp - 4], eax
lea eax, [ebp - 0x52c]
push esi
push eax
push dword [ebp + 8]
call fcn.00403bc9
add esp, 0x10
cmp dword [ebp + 0x10], ebx
je 0x40cbb8
lea eax, [ebp - 0x428]
push 0x42e900
push eax
call fcn.0041bb30
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.00405453
lea eax, [ebp - 0x428]
push str..cab
push eax
call fcn.0041bb40
lea eax, [ebp - 0x428]
push 0x427854
push eax
call fcn.0041c744
add esp, 0x20
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x40c738
push dword [ebp + 0xc]
lea eax, [ebp - 0x2c]
push str.IDR_EMBED
push str._s_u
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x2c]
push eax
push 0x2710
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp edi, ebx
mov dword [ebp - 0xc], eax
je 0x40cba2
cmp eax, ebx
je 0x40cba2
cmp dword [ebp - 0x14], ebx
je 0x40cba2
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push 1
push dword [ebp - 0xc]
call fcn.0041cbeb
push dword [ebp - 0x10]
call fcn.0041c634
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea eax, [ebp - 0x428]
push eax
call fcn.0041445a
test eax, eax
pop ecx
je 0x40c738
lea eax, [ebp - 0x428]
push eax
call fcn.0041c055
lea eax, [ebp - 0x428]
mov dword [esp], 0x42ee00
push eax
call fcn.0041bb30
lea eax, [ebp - 0x428]
push eax
push esi
call fcn.0041bb30
push 0x42e900
push dword [ebp + 8]
call fcn.0041bb30
add esp, 0x18
jmp 0x40cbb8
push dword [ebp - 0x10]
call fcn.0041c634
lea eax, [ebp - 0x428]
push eax
call fcn.0041c055
pop ecx
pop ecx
push 4
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov eax, dword [ebp - 0x18]
cmp byte [eax], bl
je 0x40cc38
push 0x42782c
push esi
mov edi, eax
call fcn.0041bb40
inc dword [ebp - 4]
mov eax, edi
pop ecx
cmp byte [eax], bl
pop ecx
je 0x40cc32
cmp byte [edi], 0x3c
jne 0x40cc22
push 0x3e
push edi
call fcn.0041c440
pop ecx
test eax, eax
pop ecx
je 0x40cc22
push edi
call fcn.00405803
push eax
mov eax, dword [ebp - 4]
add eax, esi
push eax
call fcn.0041bb30
push esi
call fcn.0041c080
push 0x3e
push edi
mov dword [ebp - 4], eax
call fcn.0041c440
mov edi, eax
add esp, 0x18
cmp edi, ebx
je 0x40cc2e
jmp 0x40cc2d
mov ecx, dword [ebp - 4]
mov al, byte [edi]
inc dword [ebp - 4]
mov byte [esi + ecx], al
inc edi
cmp byte [edi], bl
jne 0x40cbe1
mov eax, dword [ebp - 4]
mov byte [esi + eax], bl
mov eax, dword [ebp - 8]
cmp byte [eax], bl
je 0x40cea0
push 0x42782c
push esi
mov dword [ebp - 0xc], ebx
call fcn.0041bb40
mov edi, dword [ebp - 8]
inc dword [ebp - 4]
pop ecx
cmp byte [edi], 0x22
pop ecx
je 0x40cc75
push 0x4276c4
push esi
call fcn.0041bb40
inc dword [ebp - 4]
pop ecx
pop ecx
mov dword [ebp - 0xc], 1
push 0x3c
push edi
call fcn.0041c440
pop ecx
pop ecx
push dword [ebp - 8]
test eax, eax
je 0x40ccb9
call fcn.00405803
push eax
lea eax, [ebp - 0x338]
push eax
call fcn.0041bb30
push 0x5c
push dword [ebp - 8]
call fcn.0041c440
add esp, 0x14
cmp eax, ebx
je 0x40ccc7
inc eax
push eax
lea eax, [ebp - 0x338]
push eax
call fcn.00405453
jmp 0x40ccc5
lea eax, [ebp - 0x338]
push eax
call fcn.0041bb30
pop ecx
pop ecx
lea eax, [ebp - 0x338]
push eax
lea eax, [ebp - 0x52c]
push eax
push dword [ebp + 8]
call fcn.00403bc9
add esp, 0xc
cmp dword [ebp + 0x10], ebx
je 0x40ce30
cmp byte [ebp - 0x130], bl
jne 0x40ce21
lea eax, [ebp - 0x130]
push 0x42e900
push eax
call fcn.0041bb30
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.00405453
lea eax, [ebp - 0x130]
push str..cab
push eax
call fcn.0041bb40
lea eax, [ebp - 0x130]
push 0x427854
push eax
call fcn.0041c744
add esp, 0x20
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x40c738
push dword [ebp + 0xc]
lea eax, [ebp - 0x2c]
push str.IDR_EMBEDDATA
push str._s_u
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x2c]
push eax
push 0x2710
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp dword [ebp + 0x10], ebx
mov dword [ebp + 0xc], eax
je 0x40ce09
cmp eax, ebx
je 0x40ce09
cmp edi, ebx
je 0x40ce09
push dword [ebp + 8]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push 1
push dword [ebp + 0xc]
call fcn.0041cbeb
push dword [ebp + 8]
call fcn.0041c634
lea eax, [ebp - 0x130]
push eax
call fcn.0041445a
add esp, 0x18
test eax, eax
je 0x40c738
lea eax, [ebp - 0x130]
push eax
call fcn.0041c055
lea eax, [ebp - 0x130]
mov dword [esp], 0x42ee00
push eax
call fcn.0041bb30
lea eax, [ebp - 0x130]
push eax
push esi
call fcn.0041bb40
add esp, 0x10
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x40ce8e
push dword [ebp + 8]
call fcn.0041c634
lea eax, [ebp - 0x130]
push eax
call fcn.0041c055
pop ecx
pop ecx
jmp 0x40ce8e
lea eax, [ebp - 0x130]
push eax
push esi
call fcn.0041bb40
jmp 0x40ce1d
mov eax, dword [ebp - 8]
cmp byte [eax], bl
je 0x40ce88
cmp byte [edi], 0x3c
jne 0x40ce78
push 0x3e
push edi
call fcn.0041c440
pop ecx
test eax, eax
pop ecx
je 0x40ce78
push edi
call fcn.00405803
push eax
mov eax, dword [ebp - 4]
add eax, esi
push eax
call fcn.0041bb30
push esi
call fcn.0041c080
push 0x3e
push edi
mov dword [ebp - 4], eax
call fcn.0041c440
mov edi, eax
add esp, 0x18
cmp edi, ebx
je 0x40ce84
jmp 0x40ce83
mov ecx, dword [ebp - 4]
mov al, byte [edi]
inc dword [ebp - 4]
mov byte [esi + ecx], al
inc edi
cmp byte [edi], bl
jne 0x40ce37
mov eax, dword [ebp - 4]
mov byte [esi + eax], bl
cmp dword [ebp - 0xc], ebx
je 0x40cea0
push 0x4276c4
push esi
call fcn.0041bb40
pop ecx
pop ecx
cmp byte [esi], bl
je 0x40c738
mov eax, esi
jmp 0x40c73a