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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413e04
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x41e130]
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, ecx
xor ebx, ebx
cmp dword [esi + 4], ebx
jne 0x403f8e
mov eax, 0x80004005
jmp 0x4043db
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x403fa4
mov edx, dword [esi + 0x78]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x300]
call eax
mov dword [ebp - 0x5c], ebx
push str.stPercent
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], ebx
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::constructor_wchar_t_const__]
mov edi, dword [esi + 4]
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call dword [sym.imp.Common.dll_public:_wchar_t____thiscall_CTXBSTR::operator_wchar_t__void_const]
push eax
push edi
call fcn.00403750
add esp, 0xc
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::destructor_void_]
mov edi, dword [ebp - 0x5c]
cmp edi, ebx
je 0x40409d
lea ecx, [ebp - 0x38]
call dword [sym.imp.Common.dll_public:_void___thiscall_CFmtString::constructor_void_]
mov edx, dword [esi + 0x78]
push 0x417328
push edx
push str.PERCENT
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call dword [sym.imp.Common.dll_public:_int___thiscall_CFmtString::PropertyDWord_wchar_t_const___unsigned_long_int__wchar_t_const__]
lea eax, [ebp - 0x60]
push str.ImportTool_ImportProcess
push eax
call fcn.00412980
add esp, 8
mov ecx, eax
mov byte [ebp - 4], 3
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
lea ecx, [ebp - 0x38]
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CFmtString::DoFormat_wchar_t_const__]
push eax
lea ecx, [ebp - 0x54]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_wchar_t_const__]
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 5
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x58]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::constructor_class_CTXStringW_const__]
mov edi, dword [edi]
mov ecx, eax
mov byte [ebp - 4], 6
add edi, 0x2fc
call dword [sym.imp.Common.dll_public:_wchar_t____thiscall_CTXBSTR::operator_wchar_t__void_const]
mov edx, dword [ebp - 0x5c]
push eax
mov eax, dword [edi]
push edx
call eax
lea ecx, [ebp - 0x58]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::destructor_void_]
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], bl
call dword [sym.imp.Common.dll_public:_void___thiscall_CFmtString::destructor_void_]
mov edi, dword [ebp - 0x5c]
mov ecx, dword [esi + 0x7c]
mov eax, dword [esi + 0x80]
cmp ecx, eax
je 0x404305
cmp eax, 3
jge 0x40414a
cmp ecx, 3
jl 0x40414a
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x4040d4
mov ecx, dword [eax]
mov edx, dword [ecx + 0xf8]
push 1
push eax
call edx
mov dword [ebp - 0x54], ebx
push str.closebutton
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 7
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::constructor_wchar_t_const__]
mov edi, dword [esi + 4]
lea ecx, [ebp - 0x54]
push ecx
mov ecx, eax
mov byte [ebp - 4], 8
call dword [sym.imp.Common.dll_public:_wchar_t____thiscall_CTXBSTR::operator_wchar_t__void_const]
push eax
push edi
call fcn.00403840
add esp, 0xc
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 7
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::destructor_void_]
mov edi, dword [ebp - 0x54]
cmp edi, ebx
je 0x404127
mov edx, dword [edi]
mov eax, dword [edx + 0xf8]
push 1
push edi
call eax
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x40413b
mov ecx, dword [eax]
mov edx, dword [ecx + 0xf8]
push 1
push eax
call edx
cmp edi, ebx
mov byte [ebp - 4], bl
je 0x40414a
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
mov edx, dword [esi + 0x7c]
mov dword [esi + 0x80], edx
mov dword [ebp - 0x54], ebx
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x54]
push ecx
push str.stMovingProcess
push eax
mov byte [ebp - 4], 9
call fcn.00403750
mov edi, dword [ebp - 0x54]
add esp, 0xc
cmp edi, ebx
je 0x4042f3
mov eax, dword [esi + 0x7c]
sub eax, 2
je 0x40429e
sub eax, 1
je 0x404251
sub eax, 1
jne 0x4042f3
mov dword [ebp - 0x58], str.ck_WO
mov dword [ebp - 0x1c], str.file
mov dword [ebp - 0x18], str.func
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x48], 0x36e
mov dword [ebp - 0x44], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x4c], 3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ebx
call dword [sym.imp.MSVCR80.dll__time64]
lea eax, [ebp - 0x58]
push eax
push 0x4164dc
lea ecx, [ebp - 0x50]
push str.StorageTool
push ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.Common.dll_void___cdecl_TXLog_DoTXLogVW_struct_tagLogObj___wchar_t_const___wchar_t_const___char__]
lea edx, [ebp - 0x68]
push str.StorageTool_MovingRecvFile
push edx
call fcn.00412980
add esp, 0x1c
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0xe
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::constructor_class_CTXStringW_const__]
mov ecx, dword [edi]
add ecx, 0x2fc
mov dword [ebp - 0x58], ecx
mov ecx, eax
mov byte [ebp - 4], 0xf
call dword [sym.imp.Common.dll_public:_wchar_t____thiscall_CTXBSTR::operator_wchar_t__void_const]
push eax
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax]
push edi
call ecx
lea ecx, [ebp - 0x60]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::destructor_void_]
lea ecx, [ebp - 0x68]
jmp 0x4042e9
lea edx, [ebp - 0x74]
push str.StorageTool_MovingImage
push edx
call fcn.00412980
add esp, 8
push eax
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0xc
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::constructor_class_CTXStringW_const__]
mov ecx, dword [edi]
add ecx, 0x2fc
mov dword [ebp - 0x58], ecx
mov ecx, eax
mov byte [ebp - 4], 0xd
call dword [sym.imp.Common.dll_public:_wchar_t____thiscall_CTXBSTR::operator_wchar_t__void_const]
push eax
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax]
push edi
call ecx
lea ecx, [ebp - 0x6c]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::destructor_void_]
lea ecx, [ebp - 0x74]
jmp 0x4042e9
lea edx, [ebp - 0x64]
push str.StorageTool_MovingCustomFace
push edx
call fcn.00412980
add esp, 8
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0xa
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::constructor_class_CTXStringW_const__]
mov ecx, dword [edi]
add ecx, 0x2fc
mov dword [ebp - 0x58], ecx
mov ecx, eax
mov byte [ebp - 4], 0xb
call dword [sym.imp.Common.dll_public:_wchar_t____thiscall_CTXBSTR::operator_wchar_t__void_const]
push eax
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax]
push edi
call ecx
lea ecx, [ebp - 0x70]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::destructor_void_]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 9
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
cmp edi, ebx
mov byte [ebp - 4], bl
je 0x404302
mov edx, dword [edi]
mov eax, dword [edx + 8]
push edi
call eax
mov edi, dword [ebp - 0x5c]
cmp dword [esi + 0x7c], 5
jne 0x4043c6
cmp dword [esi + 0xe4], ebx
jg 0x4043c6
mov dword [ebp - 0x64], 0x4171d8
mov dword [ebp - 0x1c], str.file
mov dword [ebp - 0x18], str.func
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x48], 0x377
mov dword [ebp - 0x44], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x4c], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebp - 0x30]
push ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ebx
call dword [sym.imp.MSVCR80.dll__time64]
lea edx, [ebp - 0x64]
push edx
push 0x4164dc
lea eax, [ebp - 0x50]
push str.StorageTool
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.Common.dll_void___cdecl_TXLog_DoTXLogVW_struct_tagLogObj___wchar_t_const___wchar_t_const___char__]
mov eax, dword [esi + 4]
add esp, 0x14
cmp eax, ebx
mov dword [esi + 0xe8], 1
je 0x4043b8
lea edx, [ebp - 0x54]
mov dword [ebp - 0x54], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x1ec]
call eax
mov ecx, dword [ebp - 0x54]
push ebx
push ebx
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov esi, dword [esi + 0x74]
push ebx
push esi
call dword [sym.imp.Common.dll_int___cdecl_TXTimer::EraseTimerCallback_struct_ITXTimerCallback___unsigned_int_]
add esp, 8
cmp edi, ebx
mov dword [ebp - 4], 0xffffffff
je 0x4043d9
mov edx, dword [edi]
mov eax, dword [edx + 8]
push edi
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.00412d02
mov esp, ebp
pop ebp
ret