Function at 0x42ae22
Capabilities:
Check if file exists
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x364
lea ebp, [esp - 4]
mov eax, dword [0x52ec00]
xor eax, ebp
mov dword [ebp + 0x364], eax
push 0x18
mov eax, 0x4f9bd2
call fcn.004de83e
xor eax, eax
xor edi, edi
push 0x7e
mov word [ebp + 0x2e4], ax
lea eax, [ebp + 0x2e6]
push edi
push eax
mov dword [ebp - 0x1c], edi
call fcn.004dbcc0
lea eax, [ebp + 0x2e4]
push eax
call fcn.0042b24f
add esp, 0x10
push 0x515cc4
test eax, eax
jne 0x42aeb4
push str.fix__s
push 0x40
push 0x5c5a90
call fcn.004d5add
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x364]
xor ecx, ebp
call fcn.004d5a7d
add ebp, 0x368
leave
ret
lea eax, [ebp + 0x2e4]
push eax
call fcn.004d5d48
pop ecx
pop ecx
test eax, eax
jne 0x42aec9
inc eax
jmp 0x42ae91
lea eax, [ebp + 0x2e4]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0043ed09
pop ecx
pop ecx
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x20]
cmp dword [eax - 0xc], edi
jne 0x42aef5
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00406ace
mov eax, edi
jmp 0x42ae91
xor eax, eax
push 0x206
mov word [ebp + 0xdc], ax
lea eax, [ebp + 0xde]
push edi
push eax
call fcn.004dbcc0
add esp, 0xc
push str.Installer
push 0x549db4
lea eax, [ebp + 0xdc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str.Uninst.exe
lea eax, [ebp + 0xdc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp + 0xdc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42b113
push 2
push edi
lea eax, [ebp + 0xdc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, edi
je 0x42b113
push str.BINARY
push str.IDR_BIN_CIDS
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
je 0x42b113
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push ebx
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, edi
je 0x42b113
push dword [ebp - 0x18]
lea esi, [ebp + 0xc0]
push eax
call fcn.0042b33c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp]
push eax
mov byte [ebp - 4], 2
call fcn.00492fbd
lea eax, [ebp + 0x90]
push eax
xor ebx, ebx
mov byte [ebp - 4], 3
call fcn.0049551f
lea eax, [ebp + 0x90]
push eax
mov eax, esi
push eax
lea ebx, [ebp]
mov byte [ebp - 4], 4
call fcn.00493006
test al, al
je 0x42b0e7
lea eax, [ebp + 0x90]
call fcn.00495d88
lea ecx, [ebp + 0x90]
test al, al
jne 0x42b035
mov byte [ebp - 4], 3
call fcn.0049573e
lea eax, [ebp]
call fcn.0042b214
push 0
push 1
lea ecx, [ebp + 0xc0]
call fcn.0040653b
jmp 0x42b113
mov edx, str.cids
call fcn.00495bfc
mov ebx, eax
call fcn.00495d76
test al, al
je 0x42b203
mov eax, ebx
call fcn.00495a04
test eax, eax
je 0x42b203
xor esi, esi
mov eax, ebx
call fcn.00495a04
cmp esi, eax
jae 0x42b0e7
push esi
mov ecx, ebx
call fcn.00495a54
mov edi, eax
call fcn.00495d88
test al, al
je 0x42b0e7
mov edx, 0x515d10
mov ecx, edi
call fcn.00495bfc
cmp byte [eax + 8], 4
jne 0x42b1fd
mov eax, dword [eax]
test eax, eax
je 0x42b1fd
push dword [ebp - 0x20]
push eax
call fcn.004da569
pop ecx
pop ecx
test eax, eax
jne 0x42b1fd
mov edx, 0x515d14
mov ecx, edi
call fcn.00495bfc
cmp byte [eax + 8], 4
jne 0x42b0e7
mov eax, dword [eax]
test eax, eax
je 0x42b0e7
push eax
lea ebx, [ebp - 0x14]
call fcn.0043edba
pop ecx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jne 0x42b136
add eax, 0xfffffff0
call fcn.00406ace
lea ecx, [ebp + 0x90]
mov byte [ebp - 4], 3
call fcn.0049573e
lea eax, [ebp]
call fcn.0042b214
push 0
push 1
lea ecx, [ebp + 0xc0]
call fcn.0040653b
cmp dword [ebp - 0x1c], 0
jne 0x42b12e
lea eax, [ebp + 0x2e4]
push eax
push str.fix__s
push 0x40
push 0x5c5a90
call fcn.004d5add
add esp, 0x10
mov edi, dword [ebp - 0x1c]
jmp 0x42aee6
mov edx, 0x515d18
mov ecx, edi
call fcn.00495bfc
cmp byte [eax + 8], 4
jne 0x42b1a3
mov eax, dword [eax]
test eax, eax
je 0x42b1a3
push eax
lea ebx, [ebp - 0x18]
call fcn.0043edba
pop ecx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x42b19b
mov edx, 0x515d1c
mov ecx, edi
call fcn.00495bfc
cmp byte [eax + 8], 4
jne 0x42b198
mov eax, dword [eax]
test eax, eax
je 0x42b198
push eax
lea ebx, [ebp - 0x24]
call fcn.0043edba
mov ebx, dword [ebp - 0x24]
cmp dword [ebx - 0xc], 0
pop ecx
jne 0x42b1ab
lea eax, [ebx - 0x10]
call fcn.00406ace
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00406ace
mov eax, dword [ebp - 0x14]
jmp 0x42b0df
lea eax, [ebp + 0x2e4]
push eax
mov esi, 0x50e498
push esi
push 0x40
pop edi
push edi
push 0x5c5a90
call fcn.004d5add
push dword [ebp - 0x14]
push esi
push edi
push 0x5c5b10
call fcn.004d5add
push dword [ebp - 0x18]
push esi
push edi
push 0x5c5b90
call fcn.004d5add
push ebx
push esi
push edi
push 0x5c5c10
call fcn.004d5add
add esp, 0x40
mov dword [ebp - 0x1c], 1
jmp 0x42b190
inc esi
jmp 0x42b05f
lea ecx, [ebp + 0x90]
jmp 0x42b010