Function at 0x42b80d
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
sub esp, 0x1f8
lea ebp, [esp - 4]
mov eax, dword [0x56f8f4]
xor eax, ebp
mov dword [ebp + 0x1f8], eax
push 0x168
mov eax, 0x50c039
call fcn.004c3211
mov eax, dword [ebp + 0x204]
push eax
call dword [0x53918c]
push 4
call dword [0x539188]
mov edi, dword [sym.tpop4.exe_public:_static_class_DuiLib::CDuiString___cdecl_DuiLib::CPaintManagerUI::GetInstancePath_void_]
lea eax, [ebp]
push eax
call edi
add esp, 0xc
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [0x539180]
dec eax
je 0x42bb04
sub eax, 3
jne 0x42bc4d
mov esi, dword [sym.tpop4.exe_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_]
push 0x517f7c
push 0x8a
call esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x42b8a5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call dword [0x5390dc]
jmp 0x42bbcf
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x42b8c1
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x42b893
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, ebx
jne 0x42b900
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call dword [0x5390dc]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1f8]
xor ecx, ebp
call fcn.004c3202
add ebp, 0x1fc
leave
ret
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call dword [0x539178]
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [0x56e520], 2
jne 0x42bc4d
push 0x517f44
lea ecx, [ebp - 0x14]
call fcn.0042b63d
cmp dword [ebp - 0x14], 0xb7
mov byte [ebp - 4], 6
jne 0x42b952
mov dword [0x56e520], 1
jmp 0x42ba72
push 0x103
lea eax, [ebp + 0xf5]
push ebx
push eax
mov byte [ebp + 0xf4], bl
call fcn.004c3b30
add esp, 0xc
push ebx
push 0x1a
lea eax, [ebp + 0xf4]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0x517f40
lea eax, [ebp + 0xf4]
push eax
call esi
cmp dword [0x572004], 0x10
mov eax, dword [0x571ff0]
jae 0x42b9a5
mov eax, 0x571ff0
push eax
lea eax, [ebp + 0xf4]
push eax
call esi
cmp dword [0x5720bc], 0x10
mov eax, dword [0x5720a8]
jae 0x42b9c2
mov eax, 0x5720a8
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
lea eax, [ebp + 0xf4]
push eax
call esi
lea eax, [ebp + 0xf4]
push eax
lea ecx, [ebp - 0x34]
call fcn.004045c0
xor esi, esi
inc esi
push esi
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp + 0xa0]
push 0x5720a4
push eax
mov byte [ebp - 4], 7
call fcn.0041a1c0
add esp, 0x10
push ebx
push esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 9
call fcn.00404300
lea ecx, [ebp - 0x14]
call fcn.0042b65f
cmp dword [ebp + 0xb4], ebx
jne 0x42ba7f
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push str..down_failure_cef
call fcn.004045c0
call fcn.00427f6e
add esp, 0x1c
push str.down_failure_cef
lea ecx, [ebp - 0x50]
call fcn.004045c0
lea eax, [ebp - 0x50]
push eax
mov byte [ebp - 4], 0xa
call fcn.00427c42
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x50]
call fcn.00404300
mov dword [0x56e520], esi
push ebx
push esi
lea ecx, [ebp + 0xa0]
call fcn.00404300
lea ecx, [ebp - 0x14]
call fcn.0042b65f
jmp 0x42bc4d
lea eax, [ebp + 0xf4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x42ba5f
lea eax, [ebp - 0xf0]
push eax
call edi
pop ecx
mov ecx, eax
mov byte [ebp - 4], 0xb
call dword [0x53916c]
push eax
lea ecx, [ebp + 0x84]
call fcn.004016b0
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 0xd
call dword [0x5390dc]
cmp dword [ebp + 0x9c], 8
mov eax, dword [ebp + 0x88]
jae 0x42bad7
lea eax, [ebp + 0x88]
push ebx
lea ecx, [ebp + 0xf4]
push ecx
push eax
call fcn.00420070
add esp, 0xc
push ebx
lea ecx, [ebp + 0x84]
push esi
test eax, eax
je 0x42bafa
mov dword [0x56e520], esi
call fcn.00401fb0
jmp 0x42ba65
push str..._skin_tpop4
lea ecx, [ebp]
call dword [0x539174]
lea ecx, [ebp]
call dword [0x5390f0]
push eax
call dword [0x539170]
cmp dword [0x56e520], 2
pop ecx
jne 0x42bc4d
lea eax, [ebp - 0x174]
push eax
call edi
pop ecx
mov ecx, eax
mov byte [ebp - 4], 1
call dword [0x53916c]
push eax
lea ecx, [ebp + 0xbc]
call fcn.004016b0
mov esi, dword [sym.tpop4.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
lea ecx, [ebp - 0x174]
mov byte [ebp - 4], 3
call esi
lea eax, [ebp + 0xbc]
push eax
lea ecx, [ebp + 0xd8]
call fcn.004016f0
push str.......3rdCefResCefRes.7z
lea ecx, [ebp + 0xd8]
mov byte [ebp - 4], 4
call fcn.00417270
cmp dword [ebp + 0xf0], 8
mov eax, dword [ebp + 0xdc]
jae 0x42bb9f
lea eax, [ebp + 0xdc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42bbd6
push ebx
push 1
lea ecx, [ebp + 0xd8]
call fcn.00401fb0
push ebx
push 1
lea ecx, [ebp + 0xbc]
call fcn.00401fb0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call esi
xor al, al
jmp 0x42b8dd
lea eax, [ebp + 0xd8]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00507010
pop ecx
pop ecx
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 5
jb 0x42bbf7
mov eax, dword [eax + 4]
jmp 0x42bbfa
add eax, 4
cmp dword [ebp + 0xd4], 8
mov ecx, dword [ebp + 0xc0]
jae 0x42bc0f
lea ecx, [ebp + 0xc0]
push ebx
push eax
push ecx
call fcn.00420070
add esp, 0xc
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x18], eax
call fcn.00404300
push ebx
lea ecx, [ebp + 0xd8]
push edi
call fcn.00401fb0
push ebx
lea ecx, [ebp + 0xbc]
push edi
call fcn.00401fb0
cmp dword [ebp - 0x18], ebx
jne 0x42bbc6
mov bl, 1
jmp 0x42b8ce