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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x519008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0x1000
push esi
mov esi, ecx
push edi
push ecx
push 0
sub ax, word [esi + 0x138]
mov ecx, ebx
mov edx, dword [esi + 0x138]
add edx, dword [esi + 0x134]
movzx eax, ax
push eax
call fcn.00427160
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x4f2b8b
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
cmp ecx, 0xffffffff
jne 0x4f2baa
push 0x3e8
call edi
mov edx, dword [esi + 0x138]
mov eax, 0x1000
sub ax, word [esi + 0x138]
add edx, dword [esi + 0x134]
push ecx
movzx eax, ax
mov ecx, ebx
push 0
push eax
call fcn.00427160
mov ecx, eax
add esp, 0xc
test ecx, ecx
jne 0x4f2b50
pop edi
mov dword [esi + 0x138], 0
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403d8c
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x138]
add eax, ecx
mov dword [esi + 0x138], eax
je 0x4f2f23
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea ecx, [ebp - 0x258]
push ecx
push eax
push dword [esi + 0x134]
mov ecx, esi
call fcn.004f2700
test eax, eax
je 0x4f2f23
sub dword [esi + 0x138], eax
je 0x4f2c01
mov ecx, dword [esi + 0x134]
add eax, ecx
push dword [esi + 0x138]
push eax
push ecx
call fcn.00407040
add esp, 0xc
mov eax, dword [ebp - 0x258]
add eax, 0xfffffff5
cmp eax, 4
ja case.default.0x4f2c13
jmp dword [eax*4 + 0x4f2f38]
mov ecx, dword [esi + 0x128]
movsx eax, byte [ebp - 0x244]
push eax
push str.AlipayChinaCore::priv_handleIncomingSocketMsg_____rcv_E11_response__status___c__n
mov edx, dword [ecx]
push ecx
call dword [edx + 0xc]
add esp, 0xc
cmp byte [ebp - 0x244], 0x30
jne 0x4f2c9f
cmp byte [esi + 0x149], 0
jne 0x4f2c56
mov ecx, esi
mov byte [esi + 0x149], 1
call fcn.004f19e0
lea eax, [ebp - 0xc]
push eax
call edi
push dword [0x51dbec]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [0x51dbf0]
push dword [0x51dbe8]
mov eax, dword [ebp - 8]
sbb eax, dword [0x51dbf4]
push eax
push ecx
call fcn.004fce10
mov ecx, esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov dword [esi + 0x140], eax
mov dword [esi + 0x144], edx
call fcn.004f19e0
jmp case.default.0x4f2c13
mov eax, dword [esi + 0x128]
push str.login_failed_n
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
add esp, 8
cmp byte [esi + 0x149], 0
je 0x4f2f0b
mov ecx, esi
mov byte [esi + 0x149], 0
call fcn.004f19e0
jmp 0x4f2f0b
mov ecx, dword [esi + 0x128]
movsx eax, byte [ebp - 0x244]
push eax
push str.AlipayChinaCore::priv_handleIncomingSocketMsg_____rcv_E12_response__status___c__n
mov edx, dword [ecx]
push ecx
call dword [edx + 0xc]
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
call edi
push dword [0x51dbec]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [0x51dbf0]
push dword [0x51dbe8]
mov eax, dword [ebp - 0x10]
sbb eax, dword [0x51dbf4]
push eax
push ecx
call fcn.004fce10
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
mov dword [esi + 0x140], eax
mov dword [esi + 0x144], edx
jmp case.default.0x4f2c13
mov eax, dword [esi + 0x128]
lea edx, [ebp - 0x124]
push edx
lea edx, [ebp - 0x224]
push edx
mov ecx, dword [eax]
lea edx, [ebp - 0x244]
push edx
push str.AlipayChinaCore::priv_handleIncomingSocketMsg_____rcv_E13____s____s____s__n
push eax
call dword [ecx + 0xc]
add esp, 0x14
cmp byte [ebp - 0x244], 0
jne 0x4f2d8f
mov eax, dword [esi + 0x128]
push str.Server_error_while_generating_QR__aborting_order_n
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
add esp, 8
mov ecx, esi
push 2
push ebx
call fcn.004f1f70
xor edi, edi
mov eax, 3
xor ecx, ecx
jmp 0x4f2e87
lea eax, [ebp - 0x244]
push eax
lea eax, [esi + 0x1e5]
push 0x20
push eax
call fcn.0040c4a7
lea eax, [ebp - 0x224]
push eax
lea edi, [esi + 0x205]
push 0x100
push edi
call fcn.0040c4a7
lea eax, [ebp - 0x124]
push eax
lea eax, [esi + 0x305]
push 0x100
push eax
call fcn.0040c4a7
add esp, 0x24
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push dword [0x51dbec]
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [0x51dbf0]
push dword [0x51dbe8]
mov eax, dword [ebp - 0x18]
sbb eax, dword [0x51dbf4]
push eax
push ecx
call fcn.004fce10
mov dword [ebp - 0x1c], eax
add eax, 0xea60
mov dword [esi + 0x408], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x18], edx
adc edx, 0
push eax
mov dword [esi + 0x40c], edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push dword [0x51dbec]
mov ecx, dword [ebp - 0x24]
sub ecx, dword [0x51dbf0]
push dword [0x51dbe8]
mov eax, dword [ebp - 0x20]
sbb eax, dword [0x51dbf4]
push eax
push ecx
call fcn.004fce10
mov dword [ebp - 0x24], eax
mov ecx, edi
add eax, 0x7d0
mov dword [ebp - 0x20], edx
mov dword [esi + 0x410], eax
adc edx, 0
mov dword [esi + 0x150], 2
mov dword [esi + 0x414], edx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4f2e78
sub ecx, edx
mov eax, 1
inc ecx
push ecx
push edi
push eax
push 0x1201
mov ecx, esi
call fcn.004f1a00
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
jmp case.default.0x4f2c13
mov ecx, dword [esi + 0x128]
lea eax, [ebp - 0x244]
push eax
movsx eax, byte [ebp - 0x224]
push eax
mov edx, dword [ecx]
push str.AlipayChinaCore::priv_handleIncomingSocketMsg_____rcv_E14_response__status___d___order___s__n
push ecx
call dword [edx + 0xc]
add esp, 0x10
cmp byte [ebp - 0x224], 0x33
jne case.default.0x4f2c13
push 0
push 0
push 2
push 0x1201
mov ecx, esi
mov dword [esi + 0x150], 3
call fcn.004f1a00
jmp case.default.0x4f2c13
mov ecx, dword [esi + 0x128]
lea eax, [ebp - 0x244]
push eax
movsx eax, byte [ebp - 0x224]
push eax
mov edx, dword [ecx]
push str.AlipayChinaCore::priv_handleIncomingSocketMsg_____rcv_E15_response__status___d___order___s__n
push ecx
call dword [edx + 0xc]
add esp, 0x10
mov dword [esi + 0x150], 0
mov eax, dword [esi + 0x138]
test eax, eax
jne 0x4f2bc4
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403d8c
mov esp, ebp
pop ebp
ret 4