Function at 0x4b5df0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fd81d
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x564610]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x1e0], edi
mov dword [ebp - 0x1d4], ebx
lea eax, [ebp - 0x1d4]
push eax
push 0x515c04
push 0x515c04
mov dword [ebp - 4], ebx
call fcn.004029a0
mov eax, dword [ebp - 0x1d4]
add esp, 0xc
cmp eax, ebx
je 0x4b65e9
lea eax, [edi + 0x20]
push eax
lea ecx, [ebp - 0x1d8]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_class_CTXBSTR_const__]
lea ecx, [ebp - 0x1d8]
push ecx
lea edx, [ebp - 0x1d0]
push edx
mov byte [ebp - 4], 1
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_Util::FS::GetFileSuffix_class_CTXStringW_const__]
add esp, 8
mov edi, dword [sym.imp.Common.dll_public:_int___thiscall_CTXStringW::CompareNoCase_wchar_t_const__const]
push 0x515ee8
lea ecx, [ebp - 0x1d0]
mov byte [ebp - 4], 2
call edi
test eax, eax
je 0x4b5f35
push 0x515ee0
lea ecx, [ebp - 0x1d0]
call edi
test eax, eax
je 0x4b5f35
push 0x515ed8
lea ecx, [ebp - 0x1d0]
call edi
test eax, eax
je 0x4b5f35
push str.jpeg
lea ecx, [ebp - 0x1d0]
call edi
test eax, eax
je 0x4b5f35
push str.skin
lea ecx, [ebp - 0x1d0]
mov dword [esi], 1
call edi
test eax, eax
jne 0x4b5ef5
mov dword [esi], 4
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x1d0]
mov byte [ebp - 4], 1
call esi
lea ecx, [ebp - 0x1d8]
mov byte [ebp - 4], bl
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1d4]
cmp eax, ebx
je 0x4b5f2b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 0x80004005
jmp 0x4b65fe
mov edi, dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
lea ecx, [ebp - 0x1d8]
call edi
push eax
lea eax, [ebp - 0x1dc]
push 0x515ebc
push eax
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_FS::CombineQNC_wchar_t_const___wchar_t_const__]
add esp, 0xc
push 0x20
push 0x523240
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 3
call fcn.004b4ea0
push ebx
lea ecx, [ebp - 0x1dc]
mov byte [ebp - 4], 4
call edi
push eax
lea ecx, [ebp - 0x23c]
call fcn.004b4ce0
test al, al
jne 0x4b6037
mov dword [esi], 1
mov dword [ebp - 0x1e0], str.Generate_Customize_Skin::CxTXFile_Open_Failed
mov dword [ebp - 0x1f8], str.file
mov dword [ebp - 0x1f4], str.func
mov dword [ebp - 0x1fc], ebx
mov dword [ebp - 0x1f0], ebx
mov dword [ebp - 0x224], 0x1a9
mov dword [ebp - 0x220], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x228], 3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebp - 0x20c]
push ecx
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], ebx
call dword [sym.imp.MSVCR80.dll__time64]
lea edx, [ebp - 0x1e0]
push edx
push 0x5233fc
lea eax, [ebp - 0x22c]
push str.NewSkinMgr
push eax
mov dword [ebp - 0x204], ebx
mov dword [ebp - 0x200], ebx
call dword [sym.imp.Common.dll_void___cdecl_TXLog_DoTXLogVW_struct_tagLogObj___wchar_t_const___wchar_t_const___char__]
add esp, 0x14
jmp 0x4b621f
lea ecx, [ebp - 0x23c]
call fcn.004b4df0
or edi, 0xffffffff
cmp eax, edi
jne 0x4b613a
mov dword [esi], 4
mov dword [ebp - 0x1e0], str.Generate_Customize_Skin::CxFile_Size_is__1
mov dword [ebp - 0x224], 0x1b2
mov dword [ebp - 0x1f8], str.file
mov dword [ebp - 0x1f4], str.func
mov dword [ebp - 0x1fc], ebx
mov dword [ebp - 0x1f0], ebx
mov dword [ebp - 0x220], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x228], 3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x214], ebx
call dword [sym.imp.MSVCR80.dll__time64]
lea ecx, [ebp - 0x1e0]
push ecx
push 0x5233fc
lea edx, [ebp - 0x22c]
push str.NewSkinMgr
push edx
mov dword [ebp - 0x204], ebx
mov dword [ebp - 0x200], ebx
call dword [sym.imp.Common.dll_void___cdecl_TXLog_DoTXLogVW_struct_tagLogObj___wchar_t_const___wchar_t_const___char__]
add esp, 0x14
lea ecx, [ebp - 0x23c]
call fcn.004b5250
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 3
call fcn.004b5330
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x1dc]
mov byte [ebp - 4], 2
call esi
lea ecx, [ebp - 0x1d0]
mov byte [ebp - 4], 1
call esi
lea ecx, [ebp - 0x1d8]
mov byte [ebp - 4], bl
call esi
mov dword [ebp - 4], edi
jmp 0x4b5f19
cmp eax, ebx
jne 0x4b615d
mov dword [esi], 3
mov dword [ebp - 0x1e0], str.Generate_Customize_Skin::CxFile_Size_is_Null
mov dword [ebp - 0x224], 0x1b9
jmp 0x4b6067
cmp eax, 0x500000
jle 0x4b6183
mov dword [esi], 2
mov dword [ebp - 0x1e0], str.Generate_Customize_Skin::CxFile_Size_To_Big
mov dword [ebp - 0x224], 0x1c0
jmp 0x4b6067
lea ecx, [ebp - 0x23c]
call fcn.004b5250
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::constructor_void_]
lea ecx, [ebp - 0x1ec]
call edi
lea ecx, [ebp - 0x1e8]
call edi
mov eax, dword [ebp - 0x1d4]
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x244], 3
mov edi, dword [eax]
mov dword [ebp - 0x1e4], eax
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x240]
push ecx
lea ecx, [ebp - 0x1e8]
mov byte [ebp - 4], 6
add edi, 0x1c
call dword [sym.imp.Common.dll_public:_wchar_t_____thiscall_CTXBSTR::operator_void_]
mov ecx, dword [ebp - 0x1e0]
push eax
add ecx, 0x20
call dword [sym.imp.Common.dll_public:_wchar_t____thiscall_CTXBSTR::operator_wchar_t__void_const]
mov edx, dword [ebp - 0x1e4]
push eax
mov eax, dword [edi]
push edx
call eax
test eax, eax
jge 0x4b6245
mov dword [esi], 4
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::destructor_void_]
lea ecx, [ebp - 0x1e8]
call esi
lea ecx, [ebp - 0x1ec]
call esi
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 3
call fcn.004b5330
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x1dc]
mov byte [ebp - 4], 2
call esi
jmp 0x4b5efb
cmp dword [ebp - 0x240], ebx
jne 0x4b6570
push ebx
lea ecx, [ebp - 0x1dc]
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
lea ecx, [ebp - 0x23c]
call fcn.004b4ce0
test al, al
jne 0x4b6350
mov dword [esi], 1
mov dword [ebp - 0x1e4], str.Generate_Customize_Skin::CxTXFile_Open_Failed
mov dword [ebp - 0x1f8], str.file
mov dword [ebp - 0x1f4], str.func
mov dword [ebp - 0x1fc], ebx
mov dword [ebp - 0x1f0], ebx
mov dword [ebp - 0x224], 0x1d9
mov dword [ebp - 0x220], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x228], 3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x214], ebx
call dword [sym.imp.MSVCR80.dll__time64]
lea ecx, [ebp - 0x1e4]
push ecx
push 0x5233fc
lea edx, [ebp - 0x22c]
push str.NewSkinMgr
push edx
mov dword [ebp - 0x204], ebx
mov dword [ebp - 0x200], ebx
call dword [sym.imp.Common.dll_void___cdecl_TXLog_DoTXLogVW_struct_tagLogObj___wchar_t_const___wchar_t_const___char__]
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::destructor_void_]
add esp, 0x14
lea ecx, [ebp - 0x1e8]
call esi
lea ecx, [ebp - 0x1ec]
call esi
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 3
call fcn.004b5330
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x1dc]
mov byte [ebp - 4], 2
call esi
jmp 0x4b5efb
push ebx
lea ecx, [ebp - 0x1cc]
call sub.xImage.dll_public:_void___thiscall_CxImage::constructor_unsigned_long_int_
push ebx
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x1cc]
mov byte [ebp - 4], 7
call sub.xImage.dll_public:_bool___thiscall_CxImage::Decode_class_CxFile___unsigned_long_int_
test al, al
je 0x4b6759
lea ecx, [ebp - 0x1cc]
call sub.xImage.dll_public:_bool___thiscall_CxImage::IsValid_void_const
test al, al
je 0x4b6759
lea ecx, [ebp - 0x1cc]
call sub.xImage.dll_public:_unsigned_long_int___thiscall_CxImage::GetType_void_const
cmp eax, 4
je 0x4b64c1
cmp eax, 3
je 0x4b64c1
cmp eax, 1
je 0x4b64c1
lea ecx, [ebp - 0x23c]
call fcn.004b5250
lea ecx, [ebp - 0x1cc]
call sub.xImage.dll_public:_bool___thiscall_CxImage::Destroy_void_
mov dword [esi], 1
mov dword [ebp - 0x1e4], str.Generate_Customize_Skin::CxImage_Format_Error
mov dword [ebp - 0x1f8], str.file
mov dword [ebp - 0x1f4], str.func
mov dword [ebp - 0x1fc], ebx
mov dword [ebp - 0x1f0], ebx
mov dword [ebp - 0x224], 0x1f0
mov dword [ebp - 0x220], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x228], 3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebp - 0x20c]
push ecx
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], ebx
call dword [sym.imp.MSVCR80.dll__time64]
lea edx, [ebp - 0x1e4]
push edx
push 0x5233fc
lea eax, [ebp - 0x22c]
push str.NewSkinMgr
push eax
mov dword [ebp - 0x204], ebx
mov dword [ebp - 0x200], ebx
call dword [sym.imp.Common.dll_void___cdecl_TXLog_DoTXLogVW_struct_tagLogObj___wchar_t_const___wchar_t_const___char__]
add esp, 0x14
lea ecx, [ebp - 0x1cc]
mov byte [ebp - 4], 6
mov dword [ebp - method.CxImage.virtual_0], vtable.CxImage.0
call sub.xImage.dll_public:_bool___thiscall_CxImage::Destroy_void_
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::destructor_void_]
lea ecx, [ebp - 0x1e8]
call esi
lea ecx, [ebp - 0x1ec]
call esi
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 3
call fcn.004b5330
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x1dc]
mov byte [ebp - 4], 2
call esi
jmp 0x4b5efb
lea ecx, [ebp - 0x1cc]
call sub.xImage.dll_public:_unsigned_long_int___thiscall_CxImage::GetWidth_void_const
lea ecx, [ebp - 0x1cc]
mov edi, eax
call sub.xImage.dll_public:_unsigned_long_int___thiscall_CxImage::GetHeight_void_const
cmp edi, 0x1770
jg 0x4b669c
cmp eax, 0x1770
jg 0x4b669c
lea ecx, [ebp - 0x23c]
call fcn.004b5250
lea ecx, [ebp - 0x1cc]
call sub.xImage.dll_public:_bool___thiscall_CxImage::Destroy_void_
mov eax, dword [ebp - 0x1d4]
mov edi, dword [eax]
push ebx
lea ecx, [ebp - 0x1e8]
mov dword [ebp - 0x1e4], eax
add edi, 0x20
call dword [sym.imp.Common.dll_public:_wchar_t____thiscall_CTXBSTR::operator_wchar_t__void_const]
push eax
lea ecx, [ebp - 0x1ec]
call dword [sym.imp.Common.dll_public:_wchar_t_____thiscall_CTXBSTR::operator_void_]
mov ecx, dword [ebp - 0x1e0]
push eax
add ecx, 0x20
call dword [sym.imp.Common.dll_public:_wchar_t____thiscall_CTXBSTR::operator_wchar_t__void_const]
mov ecx, dword [edi]
push eax
mov eax, dword [ebp - 0x1e4]
push 3
push eax
call ecx
test eax, eax
mov byte [ebp - 4], 6
mov dword [ebp - method.CxImage.virtual_0], vtable.CxImage.0
lea ecx, [ebp - 0x1cc]
jl 0x4b661c
call sub.xImage.dll_public:_bool___thiscall_CxImage::Destroy_void_
lea ecx, [ebp - 0x1e8]
call dword [sym.imp.Common.dll_public:_wchar_t____thiscall_CTXBSTR::operator_wchar_t__void_const]
mov esi, dword [ebp - 0x1e0]
mov ecx, dword [esi]
mov edx, dword [ecx + 0x3c]
push eax
push 3
push esi
call edx
mov eax, dword [esi]
mov ecx, dword [eax + 0x40]
push esi
call ecx
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::destructor_void_]
lea ecx, [ebp - 0x1e8]
call esi
lea ecx, [ebp - 0x1ec]
call esi
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 3
call fcn.004b5330
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x1dc]
mov byte [ebp - 4], 2
call esi
lea ecx, [ebp - 0x1d0]
mov byte [ebp - 4], 1
call esi
lea ecx, [ebp - 0x1d8]
mov byte [ebp - 4], bl
call esi
mov eax, dword [ebp - 0x1d4]
cmp eax, ebx
mov dword [ebp - 4], 0xffffffff
je 0x4b65fc
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f019a
mov esp, ebp
pop ebp
ret 4
mov dword [esi], 4
call sub.xImage.dll_public:_bool___thiscall_CxImage::Destroy_void_
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::destructor_void_]
lea ecx, [ebp - 0x1e8]
call esi
lea ecx, [ebp - 0x1ec]
call esi
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 3
call fcn.004b5330
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x1dc]
mov byte [ebp - 4], 2
call esi
lea ecx, [ebp - 0x1d0]
mov byte [ebp - 4], 1
call esi
lea ecx, [ebp - 0x1d8]
mov byte [ebp - 4], bl
call esi
mov eax, dword [ebp - 0x1d4]
cmp eax, ebx
mov dword [ebp - 4], 0xffffffff
je 0x4b5f2b
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, 0x80004005
jmp 0x4b65fe
mov dword [esi], 2
mov dword [ebp - 0x1e4], str.Generate_Customize_Skin::CxImage_Size_To_Big
mov dword [ebp - 0x1f8], str.file
mov dword [ebp - 0x1f4], str.func
mov dword [ebp - 0x1fc], ebx
mov dword [ebp - 0x1f0], ebx
mov dword [ebp - 0x224], 0x1fb
mov dword [ebp - 0x220], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x228], 3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebp - 0x20c]
push ecx
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], ebx
call dword [sym.imp.MSVCR80.dll__time64]
lea edx, [ebp - 0x1e4]
push edx
push 0x5233fc
lea eax, [ebp - 0x22c]
push str.NewSkinMgr
push eax
mov dword [ebp - 0x204], ebx
mov dword [ebp - 0x200], ebx
call dword [sym.imp.Common.dll_void___cdecl_TXLog_DoTXLogVW_struct_tagLogObj___wchar_t_const___wchar_t_const___char__]
add esp, 0x14
lea ecx, [ebp - 0x23c]
call fcn.004b5250
lea ecx, [ebp - 0x1cc]
call sub.xImage.dll_public:_bool___thiscall_CxImage::Destroy_void_
jmp 0x4b6806
lea ecx, [ebp - 0x23c]
call fcn.004b5250
mov dword [esi], 1
mov dword [ebp - 0x1e4], 0x515c30
mov dword [ebp - 0x1f8], str.file
mov dword [ebp - 0x1f4], str.func
mov dword [ebp - 0x1fc], ebx
mov dword [ebp - 0x1f0], ebx
mov dword [ebp - 0x224], 0x1e4
mov dword [ebp - 0x220], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x228], 3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x214], ebx
call dword [sym.imp.MSVCR80.dll__time64]
lea ecx, [ebp - 0x1e4]
push ecx
push 0x5233fc
lea edx, [ebp - 0x22c]
push str.NewSkinMgr
push edx
mov dword [ebp - 0x204], ebx
mov dword [ebp - 0x200], ebx
call dword [sym.imp.Common.dll_void___cdecl_TXLog_DoTXLogVW_struct_tagLogObj___wchar_t_const___wchar_t_const___char__]
add esp, 0x14
lea ecx, [ebp - 0x1cc]
mov byte [ebp - 4], 6
mov dword [ebp - method.CxImage.virtual_0], vtable.CxImage.0
call sub.xImage.dll_public:_bool___thiscall_CxImage::Destroy_void_
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::destructor_void_]
lea ecx, [ebp - 0x1e8]
call esi
lea ecx, [ebp - 0x1ec]
call esi
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 3
call fcn.004b5330
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x1dc]
mov byte [ebp - 4], 2
call esi
jmp 0x4b5efb