Function at 0x4792d0
Capabilities:
Check for time delay via gettickcount
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x5adaf8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x44], 0
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov ebx, eax
call fcn.00444a00
mov edi, eax
mov dword [esi + 0x20], eax
call fcn.00445770
call ebp
sub eax, ebx
push eax
push str.InitSkinInfo_Cost_Time:__d
lea edi, [esp + 0x1c]
call fcn.004126f0
mov eax, dword [esp + 0x1c]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call ebp
mov ecx, dword [esi + 0x24]
push 0
push 0
push 0x1309
push ecx
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor ebx, ebx
lea esp, [esp]
mov edi, dword [esi + 0x20]
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x479439
mov eax, dword [edi + 0x1c]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jae 0x479439
test ecx, ecx
je 0x47939e
mov eax, dword [edi + 0x1c]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x4793a3
call fcn.00578ff3
mov eax, dword [edi + 0x18]
mov ecx, dword [esi + 0x20]
lea ebp, [ebx*4]
add eax, ebp
push eax
add ecx, 0x24
call fcn.0047f420
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x47942b
mov edx, dword [eax + 8]
sub edx, ecx
sar edx, 2
je 0x47942b
mov edi, dword [esi + 0x20]
mov ecx, dword [edi + 0x18]
add edi, 0x14
test ecx, ecx
je 0x4793e5
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x4793ea
call fcn.00578ff3
xor eax, eax
mov dword [esp + 0x2c], eax
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 4]
mov ecx, dword [eax + ebp]
mov eax, dword [esi + 0x24]
push ebx
push 0x133e
push eax
mov dword [esp + 0x30], 1
mov dword [esp + 0x3c], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
add ebx, 1
jmp 0x479370
mov edx, dword [esp + 0x4c]
test edx, edx
jne 0x479445
xor eax, eax
jmp 0x47945f
mov eax, edx
lea edi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x479450
sub eax, edi
sar eax, 1
mov ebx, eax
push edx
mov eax, 0x602cc0
call fcn.00404050
mov ecx, dword [0x602cc0]
mov ebx, dword [esi + 0x70]
lea edi, [esi + 0x70]
lea eax, [ecx - 0x10]
sub ebx, 0x10
cmp eax, ebx
je 0x4794c6
cmp dword [ebx + 0xc], 0
jl 0x4794bb
mov edx, dword [eax]
cmp edx, dword [ebx]
jne 0x4794bb
call fcn.00403ce0
mov dword [esp + 0x18], eax
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4794b0
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov ecx, dword [esp + 0x18]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x4794c6
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, edi
call fcn.00404050
mov edx, dword [edi]
cmp dword [edx - 0xc], 0
jne 0x4794df
push str.10000000_0000_0000_0000_000000000001
mov ebx, 0x24
mov eax, edi
call fcn.00404050
mov eax, dword [esp + 0x4c]
push eax
push ecx
mov ecx, edi
call fcn.00444870
add esp, 4
mov ebx, eax
call fcn.00484680
mov ecx, dword [edi]
mov eax, esi
call fcn.00479be0
call fcn.00477670
call ebp
sub eax, dword [esp + 0x1c]
lea edi, [esp + 0x14]
push eax
push str.UpDataPage_Cost_Time:__d
call fcn.004126f0
mov ecx, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add esp, 8
push ecx
call ebx
call ebp
push esi
mov edi, eax
call fcn.00478700
call ebp
sub eax, edi
push eax
push str.UpDatePicInfo_Cost_Time:__d
lea edi, [esp + 0x1c]
call fcn.004126f0
mov edx, dword [esp + 0x1c]
add esp, 8
push edx
call ebx
call ebp
mov edi, eax
call fcn.00479220
call ebp
sub eax, edi
push eax
push str.UpDateCtrlsStatus_Cost_Time:__d
lea edi, [esp + 0x1c]
call fcn.004126f0
mov edi, dword [esp + 0x1c]
add esp, 8
push edi
call ebx
mov eax, dword [esi + 4]
push 1
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
lea eax, [edi - 0x10]
mov dword [esp + 0x44], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4795a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 4