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

Disassembly:
push 0xffffffffffffffff
push 0x60cc67
mov eax, dword fs:[0]
push eax
sub esp, 0x8a0
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x898], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x8b4]
mov dword fs:[0], eax
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ebp, dword [esp + 0x8c4]
mov ecx, 0x677600
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.004812a0
call esi
sub eax, edi
push eax
push str.LoadSkins_Cost_Time:__d
lea edi, [esp + 0x34]
call fcn.0040ac80
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.0048b500
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4825ff
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x482612
mov dword [esp + 0x8bc], 0xffffffff
lea eax, [ebx - 0x10]
jmp 0x482d5c
mov ecx, dword [ebp + 0x20]
push edi
add ecx, 0x24
call fcn.0048b500
mov edi, eax
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x482633
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x482638
call fcn.005d29f1
mov ecx, dword [edi + 4]
mov ebx, dword [ecx + esi*4]
test ebx, ebx
mov dword [esp + 0x30], ebx
jne 0x48266a
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 0x482d69
cmp dword [ebp + 0x5c], 0
je 0x4826b5
lea esi, [ebx + 4]
lea edi, [ebp + 0x70]
mov eax, esi
call fcn.0040ab90
mov eax, edi
mov edi, 0x67ebf4
call fcn.0040ab90
push esi
mov ecx, str.10000000_0000_0000_0000_000000000001
call fcn.00414f20
mov edi, dword [ebp + 0x5c]
add esp, 4
test al, al
je 0x4826a6
push 3
push 0
push 0
jmp 0x4826b0
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
push 1
push eax
push ecx
call fcn.0057ba40
mov ecx, dword [ebx + 0x30]
test ecx, ecx
lea edi, [ebx + 0x30]
mov dword [esp + 0x38], edi
je 0x4826d1
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 0x4826ed
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esi], 0
cmp dword [ebp + 0x5c], 0
je 0x482ce3
cmp dword [edi], 0
jne 0x482ce3
cmp dword [esi], 0
jne 0x482ce3
lea esi, [esp + 0x5c]
call fcn.00498dc0
mov ecx, dword [0x67ebfc]
add ebx, 4
mov esi, ebx
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], 0x67ebf8
call fcn.00444be0
lea esi, [esp + 0x14]
mov edi, eax
call fcn.00444c50
test al, al
je 0x482759
mov ecx, dword [esp + 0x30]
add ecx, 4
call fcn.00444ae0
push eax
lea ebx, [esp + 0x60]
call fcn.00498eb0
jmp 0x48276b
mov ebx, dword [ebx]
call fcn.004991b0
lea edx, [esp + 0x5c]
mov ecx, ebx
call fcn.004991e0
mov eax, dword [ebp + 0x5c]
call fcn.0057af50
test eax, eax
je 0x482a1c
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 0x482a13
mov eax, dword [0x67d95c]
call fcn.0057afb0
mov eax, dword [0x67d960]
mov edi, dword [ebp + 0x5c]
call fcn.0057b000
lea eax, [ebp + 0x94]
lea ecx, [ebp + 0x98]
push eax
call fcn.0049ae60
add esp, 4
cmp dword [0x67d95c], esi
je 0x4828f3
mov edx, dword [ebp + 0x5c]
push 1
push edx
lea eax, [esp + 0x24]
call fcn.0057ac50
mov dword [esp + 0x14], esi
jmp 0x4827f0
mov eax, dword [esp + 0x20]
test eax, eax
mov ecx, dword [esp + 0x24]
je 0x482831
mov edx, ecx
sub edx, eax
sar edx, 2
cmp dword [esp + 0x14], edx
jae 0x482831
mov edi, dword [esp + 0x14]
mov ebx, dword [ebp + 0x98]
lea esi, [esp + 0x1c]
call fcn.0057a830
mov ecx, dword [eax]
mov edi, dword [ecx]
mov eax, ebx
mov ebx, dword [ebp + 0x5c]
call fcn.0057ae60
add dword [esp + 0x14], 1
jmp 0x4827f0
xor edi, edi
xor esi, esi
cmp eax, esi
jne 0x48283d
xor edx, edx
jmp 0x482844
mov edx, ecx
sub edx, eax
sar edx, 2
cmp edi, edx
jge 0x4828ea
cmp eax, esi
je 0x48285b
mov edx, ecx
sub edx, eax
sar edx, 2
cmp edi, edx
jb 0x482868
call fcn.005d29f1
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
cmp dword [eax + edi*4], esi
je 0x4828e2
cmp eax, esi
je 0x48287c
mov edx, ecx
sub edx, eax
sar edx, 2
cmp edi, edx
jb 0x482889
call fcn.005d29f1
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov esi, dword [eax + edi*4]
test esi, esi
je 0x4828bd
mov eax, dword [esi]
test eax, eax
je 0x4828a5
push eax
call fcn.005d28c2
add esp, 4
mov dword [esi], 0
push esi
mov dword [esi + 0x30], 0
call fcn.005d2367
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
je 0x4828ca
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x4828d3
call fcn.005d29f1
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 0x482833
lea eax, [esp + 0x1c]
call fcn.004fc8d0
cmp dword [0x67d960], esi
je 0x482a13
mov edx, dword [ebp + 0x5c]
push esi
push edx
lea eax, [esp + 0x24]
call fcn.0057ac50
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x20]
test eax, eax
mov ecx, dword [esp + 0x24]
je 0x482952
mov edx, ecx
sub edx, eax
sar edx, 2
cmp dword [esp + 0x14], edx
jae 0x482952
mov edi, dword [esp + 0x14]
mov ebx, dword [ebp + 0x94]
lea esi, [esp + 0x1c]
call fcn.0057a830
mov ecx, dword [eax]
mov edi, dword [ecx]
mov eax, ebx
mov ebx, dword [ebp + 0x5c]
call fcn.0057ae60
add dword [esp + 0x14], 1
jmp 0x482911
xor edi, edi
test eax, eax
jne 0x48295c
xor edx, edx
jmp 0x482963
mov edx, ecx
sub edx, eax
sar edx, 2
cmp edi, edx
jge 0x482a0a
test eax, eax
je 0x48297a
mov edx, ecx
sub edx, eax
sar edx, 2
cmp edi, edx
jb 0x482987
call fcn.005d29f1
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
cmp dword [eax + edi*4], 0
je 0x482a02
test eax, eax
je 0x48299c
mov edx, ecx
sub edx, eax
sar edx, 2
cmp edi, edx
jb 0x4829a9
call fcn.005d29f1
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov esi, dword [eax + edi*4]
test esi, esi
je 0x4829dd
mov eax, dword [esi]
test eax, eax
je 0x4829c5
push eax
call fcn.005d28c2
add esp, 4
mov dword [esi], 0
push esi
mov dword [esi + 0x30], 0
call fcn.005d2367
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
je 0x4829ea
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x4829f3
call fcn.005d29f1
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 0x482954
lea eax, [esp + 0x1c]
call fcn.004fc8d0
lea esi, [esp + 0x1c]
call fcn.005cc490
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, 0x67d058
call fcn.0049b580
lea ecx, [esp + 0x44]
push 0x67d058
push ecx
call fcn.0049b860
mov esi, dword [ebp + 0x5c]
add esp, 0x10
lea edx, [esp + 0x4c]
push edx
call fcn.0057b290
mov esi, dword [ebp + 0x5c]
lea eax, [esp + 0x3c]
push eax
call fcn.0057b340
mov edi, dword [esp + 0x14]
mov esi, dword [ebp + 0x5c]
call fcn.0057b2e0
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.0057beb0
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.0057bf10
mov eax, dword [esp + 0x898]
mov esi, dword [ebp + 0x5c]
push eax
call fcn.0057be60
mov eax, dword [esp + 0x880]
mov ebx, dword [ebp + 0x5c]
call fcn.0057bdf0
mov eax, dword [esp + 0x30]
add eax, 4
push eax
mov ecx, str.10000000_0000_0000_0000_000000000001
call fcn.00414f20
add esp, 4
test al, al
je 0x482c6b
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 0x482b5d
lea ebx, [esp + 0x14]
lea esi, [esp + 0x1c]
mov dword [esp + 0x14], eax
call fcn.00444930
test byte [esp + 0x89c], 0x10
je 0x482b7c
lea ebx, [esp + 0x14]
lea esi, [esp + 0x1c]
mov dword [esp + 0x14], 5
call fcn.00444930
test dword [esp + 0x89c], 0x100
je 0x482b9e
lea ebx, [esp + 0x14]
lea esi, [esp + 0x1c]
mov dword [esp + 0x14], 0xc
call fcn.00444930
test byte [esp + 0x89c], 8
je 0x482bbd
lea ebx, [esp + 0x14]
lea esi, [esp + 0x1c]
mov dword [esp + 0x14], 3
call fcn.00444930
test byte [esp + 0x89c], 0x20
je 0x482bdc
lea ebx, [esp + 0x14]
lea esi, [esp + 0x1c]
mov dword [esp + 0x14], 7
call fcn.00444930
test byte [esp + 0x89c], 0x80
je 0x482bfb
lea ebx, [esp + 0x14]
lea esi, [esp + 0x1c]
mov dword [esp + 0x14], 0xa
call fcn.00444930
test byte [esp + 0x89c], 0x40
je 0x482c1a
lea ebx, [esp + 0x14]
lea esi, [esp + 0x1c]
mov dword [esp + 0x14], 9
call fcn.00444930
test dword [esp + 0x89c], 0x400
je 0x482c4d
lea ebx, [esp + 0x14]
lea esi, [esp + 0x1c]
mov dword [esp + 0x14], 0xe
call fcn.00444930
lea ebx, [esp + 0x14]
mov dword [esp + 0x14], 0xf
call fcn.00444930
mov esi, dword [ebp + 0x5c]
lea ecx, [esp + 0x1c]
push ecx
call fcn.0057bf70
lea esi, [esp + 0x1c]
mov byte [esp + 0x8bc], 3
call fcn.005cc490
mov eax, dword [ebp + 0x5c]
xor edi, edi
call fcn.0057b200
mov eax, dword [ebp + 0x5c]
mov edi, 1
call fcn.0057b200
mov esi, dword [ebp + 0x5c]
push 0
push 0
call fcn.0057bd10
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.0057e630
mov esi, dword [ebp + 0x5c]
xor eax, eax
cmp dword [0x67d948], eax
setne al
push eax
push 1
call fcn.0057bd10
mov ecx, dword [esp + 0x34]
mov edx, dword [ebp + 0x5c]
push edi
push ecx
push edx
call fcn.0057e630
lea esi, [esp + 0x3c]
call fcn.005cc490
lea esi, [esp + 0x4c]
mov byte [esp + 0x8bc], 0
call fcn.005cc490
mov eax, dword [ebp + 0x5c]
test eax, eax
je 0x482d1e
call fcn.0057af50
test eax, eax
je 0x482d1e
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 0x482d47
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 0x482d75
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.005d28b3
add esp, 0x8ac
ret 4