Function at 0x478700
Capabilities:
Check for time delay via gettickcount
Hide graphical window
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x5ad2a7
mov eax, dword fs:[0]
push eax
sub esp, 0x8a0
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x898], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x8b4]
mov dword fs:[0], eax
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ebp, dword [esp + 0x8c4]
mov ecx, 0x5fcd20
call edx
add eax, 0x10
mov dword [esp + 0x2c], eax
mov dword [esp + 0x8bc], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov edi, eax
mov eax, dword [ebp + 0x78]
push ebp
call fcn.00477460
call esi
sub eax, edi
push eax
push str.LoadSkins_Cost_Time:__d
lea edi, [esp + 0x34]
call fcn.004126f0
mov ebx, dword [esp + 0x34]
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp + 0x20]
mov esi, dword [ebp + 0x74]
add esi, dword [ebp + 0x78]
lea edi, [ebp + 0x7c]
push edi
add ecx, 0x24
call fcn.0047f420
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4787bf
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x4787d2
mov dword [esp + 0x8bc], 0xffffffff
lea eax, [ebx - 0x10]
jmp 0x478f05
mov ecx, dword [ebp + 0x20]
push edi
add ecx, 0x24
call fcn.0047f420
mov edi, eax
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4787f3
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x4787f8
call fcn.00578ff3
mov ecx, dword [edi + 4]
mov ebx, dword [ecx + esi*4]
test ebx, ebx
mov dword [esp + 0x30], ebx
jne 0x47882a
mov dword [esp + 0x8bc], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x478f12
cmp dword [ebp + 0x5c], 0
je 0x478875
lea esi, [ebx + 4]
lea edi, [ebp + 0x70]
mov eax, esi
call fcn.004035d0
mov eax, edi
mov edi, 0x602cc0
call fcn.004035d0
push esi
mov ecx, str.10000000_0000_0000_0000_000000000001
call fcn.004866f0
mov edi, dword [ebp + 0x5c]
add esp, 4
test al, al
je 0x478866
push 3
push 0
push 0
jmp 0x478870
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
push 1
push eax
push ecx
call fcn.00529a40
mov ecx, dword [ebx + 0x30]
test ecx, ecx
lea edi, [ebx + 0x30]
mov dword [esp + 0x38], edi
je 0x478891
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [edi], 0
mov ecx, dword [ebx + 0x34]
test ecx, ecx
lea esi, [ebx + 0x34]
mov dword [esp + 0x34], esi
je 0x4788ad
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esi], 0
cmp dword [ebp + 0x5c], 0
je 0x478e8c
cmp dword [edi], 0
jne 0x478e8c
cmp dword [esi], 0
jne 0x478e8c
lea esi, [esp + 0x5c]
call fcn.00484590
mov ecx, dword [0x602cc8]
add ebx, 4
mov esi, ebx
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], 0x602cc4
call fcn.00444970
lea esi, [esp + 0x14]
mov edi, eax
call fcn.004449e0
test al, al
je 0x478919
mov ecx, dword [esp + 0x30]
add ecx, 4
call fcn.00444870
push eax
lea ebx, [esp + 0x60]
call fcn.00484680
jmp 0x47892b
mov ebx, dword [ebx]
call fcn.00484980
lea edx, [esp + 0x5c]
mov ecx, ebx
call fcn.004849b0
mov eax, dword [ebp + 0x5c]
call fcn.005291e0
test eax, eax
je 0x478bdc
xor esi, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov byte [esp + 0x8bc], 1
mov edi, dword [ebp + 0x5c]
cmp edi, esi
je 0x478bd3
mov eax, dword [0x601d74]
call fcn.00529240
mov eax, dword [0x601d78]
mov edi, dword [ebp + 0x5c]
call fcn.00529290
lea eax, [ebp + 0x94]
lea ecx, [ebp + 0x98]
push eax
call fcn.00486490
add esp, 4
cmp dword [0x601d74], esi
je 0x478ab3
mov edx, dword [ebp + 0x5c]
push 1
push edx
lea eax, [esp + 0x24]
call fcn.00528ee0
mov dword [esp + 0x14], esi
jmp 0x4789b0
mov eax, dword [esp + 0x20]
test eax, eax
mov ecx, dword [esp + 0x24]
je 0x4789f1
mov edx, ecx
sub edx, eax
sar edx, 2
cmp dword [esp + 0x14], edx
jae 0x4789f1
mov edi, dword [esp + 0x14]
mov ebx, dword [ebp + 0x98]
lea esi, [esp + 0x1c]
call fcn.0041dda0
mov ecx, dword [eax]
mov edi, dword [ecx]
mov eax, ebx
mov ebx, dword [ebp + 0x5c]
call fcn.005290f0
add dword [esp + 0x14], 1
jmp 0x4789b0
xor edi, edi
xor esi, esi
cmp eax, esi
jne 0x4789fd
xor edx, edx
jmp 0x478a04
mov edx, ecx
sub edx, eax
sar edx, 2
cmp edi, edx
jge 0x478aaa
cmp eax, esi
je 0x478a1b
mov edx, ecx
sub edx, eax
sar edx, 2
cmp edi, edx
jb 0x478a28
call fcn.00578ff3
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
cmp dword [eax + edi*4], esi
je 0x478aa2
cmp eax, esi
je 0x478a3c
mov edx, ecx
sub edx, eax
sar edx, 2
cmp edi, edx
jb 0x478a49
call fcn.00578ff3
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov esi, dword [eax + edi*4]
test esi, esi
je 0x478a7d
mov eax, dword [esi]
test eax, eax
je 0x478a65
push eax
call fcn.0057832c
add esp, 4
mov dword [esi], 0
push esi
mov dword [esi + 0x30], 0
call fcn.00578327
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
je 0x478a8a
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x478a93
call fcn.00578ff3
mov eax, dword [esp + 0x20]
mov dword [eax + edi*4], 0
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
add edi, 1
jmp 0x4789f3
lea eax, [esp + 0x1c]
call fcn.0052a9c0
cmp dword [0x601d78], esi
je 0x478bd3
mov edx, dword [ebp + 0x5c]
push esi
push edx
lea eax, [esp + 0x24]
call fcn.00528ee0
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x20]
test eax, eax
mov ecx, dword [esp + 0x24]
je 0x478b12
mov edx, ecx
sub edx, eax
sar edx, 2
cmp dword [esp + 0x14], edx
jae 0x478b12
mov edi, dword [esp + 0x14]
mov ebx, dword [ebp + 0x94]
lea esi, [esp + 0x1c]
call fcn.0041dda0
mov ecx, dword [eax]
mov edi, dword [ecx]
mov eax, ebx
mov ebx, dword [ebp + 0x5c]
call fcn.005290f0
add dword [esp + 0x14], 1
jmp 0x478ad1
xor edi, edi
test eax, eax
jne 0x478b1c
xor edx, edx
jmp 0x478b23
mov edx, ecx
sub edx, eax
sar edx, 2
cmp edi, edx
jge 0x478bca
test eax, eax
je 0x478b3a
mov edx, ecx
sub edx, eax
sar edx, 2
cmp edi, edx
jb 0x478b47
call fcn.00578ff3
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
cmp dword [eax + edi*4], 0
je 0x478bc2
test eax, eax
je 0x478b5c
mov edx, ecx
sub edx, eax
sar edx, 2
cmp edi, edx
jb 0x478b69
call fcn.00578ff3
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov esi, dword [eax + edi*4]
test esi, esi
je 0x478b9d
mov eax, dword [esi]
test eax, eax
je 0x478b85
push eax
call fcn.0057832c
add esp, 4
mov dword [esi], 0
push esi
mov dword [esi + 0x30], 0
call fcn.00578327
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
je 0x478baa
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x478bb3
call fcn.00578ff3
mov eax, dword [esp + 0x20]
mov dword [eax + edi*4], 0
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
add edi, 1
jmp 0x478b14
lea eax, [esp + 0x1c]
call fcn.0052a9c0
lea esi, [esp + 0x1c]
call fcn.00495960
xor eax, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov byte [esp + 0x8bc], 3
lea edx, [esp + 0x14]
mov dword [esp + 0x14], eax
push edx
lea eax, [esp + 0x50]
push eax
mov ecx, 0x601480
call fcn.00486c30
lea ecx, [esp + 0x44]
push 0x601480
push ecx
call fcn.00486eb0
mov esi, dword [ebp + 0x5c]
add esp, 0x10
lea edx, [esp + 0x4c]
push edx
call fcn.00529350
mov esi, dword [ebp + 0x5c]
lea eax, [esp + 0x3c]
push eax
call fcn.00529400
mov edi, dword [esp + 0x14]
mov esi, dword [ebp + 0x5c]
call fcn.005293a0
mov ecx, dword [esp + 0x894]
mov edx, dword [esp + 0x888]
mov eax, dword [esp + 0x87c]
push ecx
push edx
push eax
push eax
lea eax, [esp + 0x684]
push eax
mov eax, dword [ebp + 0x5c]
lea ecx, [esp + 0x480]
push ecx
call fcn.00529eb0
mov edx, dword [esp + 0x88c]
mov eax, dword [esp + 0x890]
push edx
push eax
mov eax, dword [esp + 0x884]
push eax
push eax
mov eax, dword [ebp + 0x5c]
lea ecx, [esp + 0x684]
push ecx
lea edx, [esp + 0x480]
push edx
call fcn.00529f10
mov eax, dword [esp + 0x898]
mov esi, dword [ebp + 0x5c]
push eax
call fcn.00529e60
mov eax, dword [esp + 0x880]
mov ebx, dword [ebp + 0x5c]
call fcn.00529df0
mov eax, dword [esp + 0x30]
add eax, 4
push eax
mov ecx, str.10000000_0000_0000_0000_000000000001
call fcn.004866f0
add esp, 4
test al, al
je 0x478e2b
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov cl, 4
mov byte [esp + 0x8bc], cl
test byte [esp + 0x89c], cl
je 0x478d1d
lea ebx, [esp + 0x14]
lea esi, [esp + 0x1c]
mov dword [esp + 0x14], eax
call fcn.004446c0
test byte [esp + 0x89c], 0x10
je 0x478d3c
lea ebx, [esp + 0x14]
lea esi, [esp + 0x1c]
mov dword [esp + 0x14], 5
call fcn.004446c0
test dword [esp + 0x89c], 0x100
je 0x478d5e
lea ebx, [esp + 0x14]
lea esi, [esp + 0x1c]
mov dword [esp + 0x14], 0xc
call fcn.004446c0
test byte [esp + 0x89c], 8
je 0x478d7d
lea ebx, [esp + 0x14]
lea esi, [esp + 0x1c]
mov dword [esp + 0x14], 3
call fcn.004446c0
test byte [esp + 0x89c], 0x20
je 0x478d9c
lea ebx, [esp + 0x14]
lea esi, [esp + 0x1c]
mov dword [esp + 0x14], 7
call fcn.004446c0
test byte [esp + 0x89c], 0x80
je 0x478dbb
lea ebx, [esp + 0x14]
lea esi, [esp + 0x1c]
mov dword [esp + 0x14], 0xa
call fcn.004446c0
test byte [esp + 0x89c], 0x40
je 0x478dda
lea ebx, [esp + 0x14]
lea esi, [esp + 0x1c]
mov dword [esp + 0x14], 9
call fcn.004446c0
test dword [esp + 0x89c], 0x400
je 0x478e0d
lea ebx, [esp + 0x14]
lea esi, [esp + 0x1c]
mov dword [esp + 0x14], 0xe
call fcn.004446c0
lea ebx, [esp + 0x14]
mov dword [esp + 0x14], 0xf
call fcn.004446c0
mov esi, dword [ebp + 0x5c]
lea ecx, [esp + 0x1c]
push ecx
call fcn.00529f70
lea esi, [esp + 0x1c]
mov byte [esp + 0x8bc], 3
call fcn.00495960
mov esi, dword [ebp + 0x5c]
push 0
push 0
call fcn.00529d10
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
mov eax, dword [ebp + 0x5c]
add edi, 0x28
push edi
push edx
push eax
call fcn.0052b580
mov esi, dword [ebp + 0x5c]
xor eax, eax
cmp dword [0x601d60], eax
setne al
push eax
push 1
call fcn.00529d10
mov ecx, dword [esp + 0x34]
mov edx, dword [ebp + 0x5c]
push edi
push ecx
push edx
call fcn.0052b580
lea esi, [esp + 0x3c]
call fcn.00495960
lea esi, [esp + 0x4c]
mov byte [esp + 0x8bc], 0
call fcn.00495960
mov eax, dword [ebp + 0x5c]
test eax, eax
je 0x478ec7
call fcn.005291e0
test eax, eax
je 0x478ec7
mov eax, dword [ebp + 4]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x4c9
push eax
call esi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push eax
call edi
mov ecx, dword [ebp + 4]
push 0x529
push ecx
call esi
push 5
jmp 0x478ef0
mov edx, dword [ebp + 4]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x4c9
push edx
call esi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call edi
mov eax, dword [ebp + 4]
push 0x529
push eax
call esi
push 0
push eax
call edi
mov dword [esp + 0x8bc], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x478f1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x8b4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x898]
xor ecx, esp
call fcn.005787fd
add esp, 0x8ac
ret 4