Function at 0x476490
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4f4a9a
mov eax, dword fs:[0]
push eax
sub esp, 0x558
mov eax, dword [0x52b360]
xor eax, esp
mov dword [esp + 0x554], eax
push ebx
push esi
push edi
mov eax, dword [0x52b360]
xor eax, esp
push eax
lea eax, [esp + 0x568]
mov dword fs:[0], eax
push 1
push 0x533314
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
xor ebx, ebx
cmp eax, 1
je 0x476a88
mov eax, dword [0x532c30]
cmp eax, ebx
je 0x476a88
lea ecx, [esp + 0x254]
push ecx
call eax
cmp eax, ebx
je 0x476a88
cmp dword [esp + 0x259], ebx
je 0x476a88
lea esi, [esp + 0x50]
call fcn.0047fd60
mov edi, 8
cmp dword [eax + 0x18], edi
jb 0x476526
mov eax, dword [eax + 4]
jmp 0x476529
add eax, 4
push eax
push 1
push str.AgreeMergeHistory
push str.wallpaper
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
cmp dword [esp + 0x68], edi
jb 0x476551
mov edx, dword [esp + 0x54]
push edx
call fcn.004c8f17
add esp, 4
cmp esi, ebx
je 0x476a88
mov dword [esp + 0x570], ebx
lea eax, [esp + 0x70]
mov dword [esp + 0x6c], vtable.HistoryData::CHistoryDataInfo.0
mov dword [esp + 0x1c], eax
mov byte [esp + 0x570], 1
push 4
mov dword [esp + 0x74], vtable.HistoryData::CFolderDataArray.0
call fcn.004c8f3d
add esp, 4
cmp eax, ebx
je 0x476596
lea ecx, [esp + 0x74]
mov dword [eax], ecx
jmp 0x476598
xor eax, eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
lea edx, [esp + 0x8c]
push edx
mov byte [esp + 0x574], 3
call fcn.00434ba0
lea eax, [esp + 0xac]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x570], 5
push 4
mov dword [esp + 0xb0], vtable.HistoryData::CHistoryDataArray.0
call fcn.004c8f3d
add esp, 4
cmp eax, ebx
je 0x4765fd
lea ecx, [esp + 0xb0]
mov dword [eax], ecx
jmp 0x4765ff
xor eax, eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xc4], ebx
lea edx, [esp + 0xc8]
push edx
mov byte [esp + 0x574], 7
call fcn.0046fb10
mov dword [esp + 0xec], vtable.HistoryData::CJsonInt64Value.0
lea eax, [esp + 0x6c]
push eax
mov dword [esp + 0x574], edi
call fcn.00475af0
add esp, 4
test al, al
jne 0x47665d
lea ecx, [esp + 0x6c]
push ecx
jmp 0x476a78
call fcn.00418d60
test eax, eax
je 0x476a73
call fcn.00418d60
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x47667b
mov eax, dword [eax + 4]
jmp 0x47667d
xor eax, eax
push 1
push 0x502698
push str._fT_bTv_g0Wpenc
push eax
call fcn.00409ca0
add esp, 0x10
cmp eax, 1
jne 0x476a65
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
call fcn.00470770
test al, al
je 0x476a73
mov esi, 0xf
mov dword [esp + 0x1a8], esi
mov dword [esp + 0x1a4], ebx
mov byte [esp + 0x194], bl
mov byte [esp + 0x570], 9
mov eax, dword [esp + 0x1c]
add eax, 0x20
lea ecx, [esp + 0x50]
call fcn.004706c0
mov byte [esp + 0x570], 0xa
cmp dword [eax + 0x18], edi
jb 0x4766f4
mov eax, dword [eax + 4]
jmp 0x4766f7
add eax, 4
lea edx, [esp + 0x190]
push edx
push eax
call fcn.004854e0
add esp, 8
mov byte [esp + 0x570], 9
cmp dword [esp + 0x68], edi
jb 0x476723
mov eax, dword [esp + 0x54]
push eax
call fcn.004c8f17
add esp, 4
push 4
call fcn.004c8f3d
add esp, 4
cmp eax, ebx
je 0x47673c
lea ecx, [esp + 0x1e4]
mov dword [eax], ecx
jmp 0x47673e
xor eax, eax
mov dword [esp + 0x1e4], eax
mov dword [esp + 0x1f4], ebx
mov dword [esp + 0x1f8], ebx
mov dword [esp + 0x1fc], ebx
mov dword [esp + 0x200], ebx
mov dword [esp + 0x21c], esi
mov dword [esp + 0x218], ebx
mov byte [esp + 0x208], bl
mov dword [esp + 0x24c], esi
mov dword [esp + 0x248], ebx
mov byte [esp + 0x238], bl
mov dword [esp + 0x220], ebx
mov dword [esp + 0x224], ebx
mov byte [esp + 0x250], bl
mov dword [esp + 0x228], ebx
mov dword [esp + 0x22c], ebx
mov dword [esp + 0x230], ebx
lea edx, [esp + 0xfc]
push edx
mov byte [esp + 0x574], 0xb
call fcn.004647b0
mov byte [esp + 0x570], 0xc
mov ecx, dword [esp + 0x1a8]
mov eax, dword [esp + 0x194]
mov edx, eax
cmp ecx, 0x10
jae 0x4767f0
lea edx, [esp + 0x194]
mov eax, edx
mov ecx, dword [esp + 0x1a4]
add ecx, edx
lea edx, [esp + 0xfc]
mov dword [esp + 0x224], ecx
push edx
lea ecx, [esp + 0x1e8]
mov dword [esp + 0x224], eax
mov byte [esp + 0x254], 1
mov dword [esp + 0x22c], eax
mov dword [esp + 0x230], ebx
mov dword [esp + 0x234], ebx
call fcn.00483760
mov eax, dword [0x532e08]
cmp eax, ebx
je 0x476848
mov ecx, dword [esp + 0x1c]
push ecx
call eax
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x100]
push eax
call fcn.00470460
test byte [0x5341c8], 1
jne 0x476887
or dword [0x5341c8], 1
push 0x4f9cf0
mov dword [0x534104], 0x509d74
mov dword [0x534108], ebx
call fcn.004c9e97
add esp, 4
lea ecx, [esp + 0x1c8]
push ecx
lea ecx, [esp + 0x100]
call fcn.00464d20
mov esi, 7
xor edx, edx
mov dword [esp + 0x1c4], esi
mov dword [esp + 0x1c0], ebx
mov word [esp + 0x1b0], dx
mov byte [esp + 0x570], 0xe
cmp dword [esp + 0x1e0], 0x10
mov eax, dword [esp + 0x1cc]
jae 0x4768d8
lea eax, [esp + 0x1cc]
mov edx, dword [esp + 0x1dc]
lea ecx, [esp + 0x1ac]
push ecx
push edx
push eax
call fcn.00485470
mov eax, 1
add esp, 0xc
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x570], 0xf
mov ecx, dword [esp + 0x1b0]
mov dword [esp + 0x20], 0x5f5e100
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
cmp dword [esp + 0x1c4], edi
jae 0x476949
lea ecx, [esp + 0x1b0]
lea edi, [esp + 0x40]
call fcn.004705a0
mov eax, dword [0x532dfc]
cmp eax, ebx
je 0x476966
lea ecx, [esp + 0x20]
push ecx
call eax
cmp al, bl
jne 0x476976
mov eax, dword [0x532e00]
cmp eax, ebx
je 0x476976
lea edx, [esp + 0x20]
push edx
call eax
call fcn.00474230
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x47698c
push eax
call fcn.004ca215
add esp, 4
mov eax, dword [esp + 0x44]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
cmp eax, ebx
je 0x4769a5
push eax
call fcn.004ca215
add esp, 4
cmp dword [esp + 0x1c4], 8
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
jb 0x4769c7
mov eax, dword [esp + 0x1b0]
push eax
call fcn.004c8f17
add esp, 4
xor ecx, ecx
cmp dword [esp + 0x1e0], 0x10
mov dword [esp + 0x1c4], esi
mov dword [esp + 0x1c0], ebx
mov word [esp + 0x1b0], cx
jb 0x4769f9
mov edx, dword [esp + 0x1cc]
push edx
call fcn.004c8f17
add esp, 4
lea eax, [esp + 0xfc]
mov esi, 0xf
push eax
mov dword [esp + 0x1e4], esi
mov dword [esp + 0x1e0], ebx
mov byte [esp + 0x1d0], bl
mov byte [esp + 0x574], 0xb
call fcn.00464820
lea eax, [esp + 0x1e4]
call fcn.00483700
cmp dword [esp + 0x1a8], 0x10
jb 0x476a4e
mov ecx, dword [esp + 0x194]
push ecx
call fcn.004c8f17
add esp, 4
mov dword [esp + 0x1a8], esi
mov dword [esp + 0x1a4], ebx
mov byte [esp + 0x194], bl
jmp 0x476a73
push ebx
mov edi, str.AgreeMergeHistory
call fcn.0047f9a0
add esp, 4
lea edx, [esp + 0x6c]
push edx
mov dword [esp + 0x574], 0xffffffff
call fcn.00464820
push ebx
push 0x533314
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esp + 0x568]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x554]
xor ecx, esp
call fcn.004c8f08
add esp, 0x564
ret