Function at 0x449740
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fd546
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
mov eax, dword [0x519008]
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 ebx, ecx
cmp byte [ebx + 0x104], 0
je 0x449783
push str.SocketBridgeServer::alipayChina_setup_____a_module_is_already_instanced_n
jmp 0x449cfe
mov eax, dword [str.C20190001]
lea edi, [ebp - 0x50]
mov ecx, 8
mov dword [ebp - 0x1c], eax
mov eax, dword [0x50c264]
mov esi, str.1648339973B547DC8DE3D60787079B3D
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x18], eax
movzx eax, word [0x50c268]
mov word [ebp - 0x14], ax
mov eax, dword [str.121.196.20.39]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x50c270]
mov dword [ebp - 0x28], eax
mov eax, dword [0x50c274]
mov dword [ebp - 0x24], eax
movzx eax, word [0x50c278]
mov word [ebp - 0x20], ax
mov eax, 0x1783
movsb byte es:[edi], byte [esi]
mov word [ebx + 0x12c], ax
lea esi, [ebx + 0x11c]
lea eax, [ebp - 0x2c]
push eax
push 0x10
push esi
call fcn.004014e0
lea eax, [ebp - 0x1c]
push eax
lea edi, [ebx + 0x12e]
push 0x10
push edi
call fcn.004014e0
lea ecx, [ebp - 0x50]
push ecx
lea eax, [ebx + 0x13e]
push 0x40
push eax
call fcn.004014e0
push 0x51d9e4
push str._s_current_ini_config.alipaychina.ini
lea eax, [ebp - 0x150]
push 0x100
push eax
call fcn.004014e0
xor eax, eax
add esp, 0x34
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x158], eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x16c]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x16c], eax
lea eax, [ebp - 0x150]
push eax
call fcn.004f7610
test al, al
je 0x449aa9
xor eax, eax
mov dword [ebp - 0x18c], eax
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x184], eax
mov dword [ebp - 0x180], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x158]
test ecx, ecx
jne 0x4498ac
mov eax, 0x1783
jmp 0x4498d0
push str.alipayChina.serverPort
call fcn.004fad60
test eax, eax
jne 0x4498c1
mov eax, 0x1783
jmp 0x4498ca
push eax
call fcn.0040bea5
add esp, 4
mov ecx, dword [ebp - 0x158]
mov word [ebx + 0x12c], ax
test ecx, ecx
jne 0x449912
xor esi, esi
cmp byte [ebp - 0x2c], cl
je 0x4498ea
inc esi
cmp byte [ebp + esi - 0x2c], 0
jne 0x4498e2
cmp esi, 0x10
jb 0x4498f4
mov esi, 0xf
push esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebx + 0x11c]
push eax
call fcn.00407040
add esp, 0xc
mov byte [esi + ebx + 0x11c], 0
jmp 0x449978
push str.alipayChina.serverIP
call fcn.004fad60
xor esi, esi
test eax, eax
je 0x44993a
cmp byte [eax], 0
je 0x44992e
inc esi
cmp byte [esi + eax], 0
jne 0x449927
cmp esi, 0x10
jb 0x449955
mov esi, 0xf
jmp 0x449955
cmp byte [ebp - 0x2c], 0
je 0x449948
inc esi
cmp byte [ebp + esi - 0x2c], 0
jne 0x449940
cmp esi, 0x10
jb 0x449952
mov esi, 0xf
lea eax, [ebp - 0x2c]
push esi
push eax
lea eax, [ebx + 0x11c]
push eax
call fcn.00407040
mov ecx, dword [ebp - 0x158]
add esp, 0xc
mov byte [esi + ebx + 0x11c], 0
test ecx, ecx
jne 0x4499a6
xor esi, esi
cmp byte [ebp - 0x1c], 0
je 0x449988
inc esi
cmp byte [ebp + esi - 0x1c], 0
jne 0x449980
cmp esi, 0x10
jb 0x449992
mov esi, 0xf
push esi
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.00407040
add esp, 0xc
mov byte [edi + esi], 0
jmp 0x449a0e
push str.alipayChina.machineID
call fcn.004fad60
xor esi, esi
test eax, eax
je 0x4499d3
cmp byte [eax], 0
je 0x4499c7
jmp 0x4499c0
inc esi
cmp byte [esi + eax], 0
jne 0x4499c0
cmp esi, 0x10
jb 0x4499f5
mov esi, 0xf
jmp 0x4499f5
cmp byte [ebp - 0x1c], 0
je 0x4499e8
lea esp, [esp]
inc esi
cmp byte [ebp + esi - 0x1c], 0
jne 0x4499e0
cmp esi, 0x10
jb 0x4499f2
mov esi, 0xf
lea eax, [ebp - 0x1c]
push esi
push eax
push edi
call fcn.00407040
mov ecx, dword [ebp - 0x158]
add esp, 0xc
mov byte [esi + edi], 0
test ecx, ecx
jne 0x449a43
xor esi, esi
cmp byte [ebp - 0x50], 0
je 0x449a1e
inc esi
cmp byte [ebp + esi - 0x50], 0
jne 0x449a16
cmp esi, 0x40
jb 0x449a28
mov esi, 0x3f
push esi
lea eax, [ebp - 0x50]
push eax
lea eax, [ebx + 0x13e]
push eax
call fcn.00407040
mov byte [ebx + esi + 0x13e], 0
jmp 0x449a9c
push str.alipayChina.key
call fcn.004fad60
xor esi, esi
test eax, eax
je 0x449a6b
cmp byte [eax], 0
je 0x449a5f
inc esi
cmp byte [esi + eax], 0
jne 0x449a58
cmp esi, 0x40
jb 0x449a86
mov esi, 0x3f
jmp 0x449a86
cmp byte [ebp - 0x50], 0
je 0x449a79
inc esi
cmp byte [ebp + esi - 0x50], 0
jne 0x449a71
cmp esi, 0x40
jb 0x449a83
mov esi, 0x3f
lea eax, [ebp - 0x50]
push esi
push eax
lea eax, [ebx + 0x13e]
push eax
call fcn.00407040
mov byte [esi + ebx + 0x13e], 0
add esp, 0xc
mov byte [ebp - 4], 0
lea esi, [ebx + 0x11c]
mov ecx, dword [ebp - 0x16c]
test ecx, ecx
je 0x449ac6
lea edx, [ebp - 0x158]
call fcn.00403a40
xor ecx, ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 4], 3
test ecx, ecx
je 0x449ae6
lea edx, [ebp - 0x158]
call fcn.00403a40
mov dword [ebp - 0x16c], 0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x168]
test ecx, ecx
je 0x449b06
mov eax, dword [ebp - 0x164]
test eax, eax
je 0x449b06
push 0
push eax
call fcn.00401560
mov dword [ebp - 4], 0xffffffff
cmp byte [ebx + 0x105], 0
jne 0x449b5b
mov dx, word [ebx + 0x12c]
lea eax, [ebx + 0x10c]
push eax
push dword [ebx + 8]
lea eax, [ebp - 0x50]
mov ecx, esi
push eax
push edi
call fcn.004f1550
add esp, 0x10
mov byte [ebx + 0x105], al
test al, al
jne 0x449b4a
push str.SocketBridgeServer::alipayChina_setup_____error_starting_the_thread_n
jmp 0x449cfe
lea edx, [ebx + 0x10a]
lea ecx, [ebx + 0x108]
call fcn.0042dfb0
movzx esi, word [ebx + 0x10a]
lea ecx, [ebx + 0x110]
call fcn.0042e110
mov edi, eax
test edi, edi
je 0x449bbf
mov dword [ebp - 0x19c], esi
lea esi, [edi + 8]
push esi
mov dword [ebp - 0x1a0], 0x1100
mov dword [ebp - 0x198], 0
mov dword [ebp - 0x194], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi]
lea eax, [ebp - 0x1a0]
push eax
call fcn.00401dc0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x174]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push dword [0x51dbec]
mov ecx, dword [ebp - 0x174]
sub ecx, dword [0x51dbf0]
push dword [0x51dbe8]
mov eax, dword [ebp - 0x170]
sbb eax, dword [0x51dbf4]
push eax
push ecx
call fcn.004fce10
mov edi, eax
lea esi, [ebx + 0x108]
add edi, 0xfa0
mov eax, edx
adc eax, 0
mov dword [ebp - 0x170], eax
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x1b0]
mov ecx, esi
call fcn.0042da90
test al, al
je 0x449c9f
mov eax, 0x1101
cmp word [ebp - 0x1b0], ax
je 0x449d28
cmp dword [ebp - 0x1a4], 0
jbe 0x449c9f
mov eax, dword [ebp - 0x1a8]
test eax, eax
je 0x449c9f
mov esi, dword [0x519aa0]
mov edx, dword [esi]
cmp edx, vtable.rhea::AllocatorSimple_class_rhea::AllocatorTrackingPolicy_simple_.0
jne 0x449dfd
movzx ecx, byte [eax - 4]
lea edx, [eax - 8]
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 7]
shl ecx, 0x10
or ecx, eax
movzx eax, byte [edx + 6]
dec dword [esi + 0x18]
and ecx, 0x3fffffff
shl eax, 8
or ecx, eax
sub dword [esi + 0x1c], ecx
push edx
call fcn.0040beca
add esp, 4
lea esi, [ebx + 0x108]
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push dword [0x51dbec]
mov ecx, dword [ebp - 0x17c]
sub ecx, dword [0x51dbf0]
push dword [0x51dbe8]
mov eax, dword [ebp - 0x178]
sbb eax, dword [0x51dbf4]
push eax
push ecx
call fcn.004fce10
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0x178], edx
cmp edx, dword [ebp - 0x170]
ja 0x449cf9
jb 0x449c10
cmp eax, edi
jb 0x449c10
push str.SocketBridgeServer::alipayChina_setup_____subscribed_KO_n
mov eax, dword [ebx + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
add esp, 8
xor al, al
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.00403d8c
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x190]
mov ecx, esi
call fcn.0042db20
mov ecx, dword [ebx]
lea ecx, [ecx + 0x10c]
call fcn.004f4220
cmp dword [ebp - 0x1a4], 0
mov ecx, dword [ebp - 0x190]
mov byte [eax + 0xc], 2
mov dword [eax], ecx
mov dword [eax + 0x10], 0xfffffffe
jbe 0x449d76
mov eax, dword [ebp - 0x1a8]
test eax, eax
je 0x449d76
mov ecx, dword [0x519aa0]
push 0
push eax
call fcn.00401560
mov eax, dword [ebx + 8]
mov byte [ebx + 0x104], 1
mov byte [ebx + 0x106], 0
push str.SocketBridgeServer::alipayChina_setup_____subscribed_OK_n
mov edx, dword [eax]
push eax
call dword [edx + 0xc]
add esp, 8
lea ecx, [ebx + 0x110]
call fcn.0042e110
mov edi, eax
test edi, edi
je 0x449df6
lea esi, [edi + 8]
mov dword [ebp - 0x1c0], 0x1300
push esi
mov dword [ebp - 0x1bc], 0
mov dword [ebp - 0x1b8], 0
mov dword [ebp - 0x1b4], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi]
lea eax, [ebp - 0x1c0]
push eax
call fcn.00401dc0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x449d0c
push 0
push eax
mov ecx, esi
call dword [edx + 0x10]
jmp 0x449c99