Function at 0x10021960
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x100b2b82
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x100e3f88]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100e3f88]
xor eax, esp
push eax
lea eax, [esp + 0x154]
mov dword fs:[0], eax
mov eax, dword [esp + 0x164]
lea ecx, [esp + 0x74]
push ecx
mov dword [esp + 0x34], eax
call fcn.100220f0
push 0xa
push ecx
lea edx, [esp + 0x7c]
push str.SELECT__from_deviceinfo_order_by_datetime_lasttime__desc_limit
xor ebx, ebx
push edx
mov dword [esp + 0x16c], ebx
call fcn.10024320
add esp, 0xc
push eax
call fcn.10021fa0
lea ecx, [esp + 0x50]
lea eax, [esp + 0x74]
call fcn.10022210
mov edi, 0x10
mov byte [esp + 0x15c], 1
cmp dword [eax + 0x18], edi
jb 0x100219f8
mov edx, dword [eax + 4]
jmp 0x100219fb
lea edx, [eax + 4]
mov ebp, 0xf
mov eax, edx
mov dword [esp + 0x12c], ebp
mov dword [esp + 0x128], ebx
mov byte [esp + 0x118], bl
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10021a20
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x11c]
call fcn.10003bb0
mov byte [esp + 0x15c], 3
cmp dword [esp + 0x68], edi
jb 0x10021a52
mov eax, dword [esp + 0x54]
push eax
call fcn.1007de55
add esp, 4
mov esi, dword [esp + 0x118]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
push edx
cmp dword [esp + 0x134], edi
jae 0x10021a87
lea esi, [esp + 0x120]
sub esp, 0x1c
mov ecx, esp
mov eax, esi
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
mov dword [esp + 0x40], esp
mov byte [ecx + 4], bl
lea edi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10021aa0
sub eax, edi
push eax
push esi
call fcn.10003bb0
push ecx
mov byte [esp + 0x184], 4
call fcn.100214c0
add esp, 4
mov ecx, eax
mov byte [esp + 0x180], 3
call fcn.10020e30
mov dword [esp + 0x28], eax
cmp eax, ebx
jne 0x10021b43
cmp dword [esp + 0x12c], 0x10
jb 0x10021af2
mov eax, dword [esp + 0x118]
push eax
call fcn.1007de55
add esp, 4
lea ecx, [esp + 0xc0]
mov dword [esp + 0x12c], ebp
mov dword [esp + 0x128], ebx
mov byte [esp + 0x118], bl
mov dword [esp + 0x15c], 0xffffffff
call fcn.10022180
lea ecx, [esp + 0xc0]
push ecx
mov dword [esp + 0xc4], vtable.std::ios_base.0
call fcn.100a9acf
add esp, 4
mov eax, 1
jmp 0x10021f78
cmp dword [esp + 0x20], ebx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], edx
mov dword [esp + 0x2c], ebx
jle 0x10021f11
lea esp, [esp]
push 0x64
call fcn.1007de1b
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0x15c], 5
cmp eax, ebx
je 0x10021b84
push eax
call fcn.10020d30
mov ebp, eax
jmp 0x10021b86
xor ebp, ebp
mov byte [esp + 0x15c], 3
cmp dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebx
jle 0x10021ead
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov ecx, dword [eax + ecx*4]
cmp ecx, ebx
je 0x10021e96
mov edx, eax
mov eax, dword [esp + 0x14]
cmp dword [edx + eax*4], ebx
je 0x10021e96
mov edi, 0xf
mov eax, ecx
mov dword [esp + 0x148], edi
mov dword [esp + 0x144], ebx
mov byte [esp + 0x134], bl
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10021be1
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x138]
call fcn.10003bb0
mov byte [esp + 0x15c], 6
push ebx
push 0x100c4c78
lea ecx, [esp + 0x100]
mov dword [esp + 0x118], edi
mov dword [esp + 0x114], ebx
mov byte [esp + 0x104], bl
call fcn.10003bb0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov byte [esp + 0x15c], 7
mov ecx, dword [ecx + edx*4]
cmp ecx, ebx
je 0x10021c9c
mov eax, ecx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
lea esi, [eax + 1]
nop
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10021c50
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x3c]
call fcn.10003bb0
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x104]
mov byte [esp + 0x168], 8
call fcn.10004010
mov byte [esp + 0x15c], 7
cmp dword [esp + 0x4c], 0x10
jb 0x10021c9c
mov ecx, dword [esp + 0x38]
push ecx
call fcn.1007de55
add esp, 4
mov esi, dword [esp + 0x144]
mov eax, esi
cmp esi, 8
jb 0x10021caf
mov eax, 8
mov edi, dword [esp + 0x148]
mov edx, dword [esp + 0x134]
cmp edi, 0x10
jae 0x10021cc9
lea edx, [esp + 0x134]
push eax
mov ecx, str.deviceid
call fcn.10003080
add esp, 4
cmp eax, ebx
jne 0x10021d1f
cmp esi, 8
jb 0x10021d24
xor eax, eax
cmp esi, 8
setne al
cmp eax, ebx
jne 0x10021d1f
cmp dword [esp + 0x10c], ebx
jbe 0x10021e3e
cmp dword [esp + 0x110], 0x10
mov eax, dword [esp + 0xfc]
jae 0x10021d11
lea eax, [esp + 0xfc]
push eax
call fcn.1008fce0
mov dword [ebp], eax
jmp 0x10021e3b
cmp esi, 8
jae 0x10021d28
mov eax, esi
jmp 0x10021d2d
mov eax, 8
mov edx, dword [esp + 0x134]
cmp edi, 0x10
jae 0x10021d40
lea edx, [esp + 0x134]
push eax
mov ecx, str.signcert
call fcn.10003080
add esp, 4
cmp eax, ebx
jne 0x10021d7b
cmp esi, 8
jb 0x10021d7b
xor eax, eax
cmp esi, 8
setne al
cmp eax, ebx
jne 0x10021d7b
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x100]
lea ecx, [ebp + 4]
push edx
call fcn.10004010
jmp 0x10021e3e
mov eax, esi
cmp esi, 7
jb 0x10021d87
mov eax, 7
mov edx, dword [esp + 0x134]
cmp edi, 0x10
jae 0x10021d9a
lea edx, [esp + 0x134]
push eax
mov ecx, str.enccert
call fcn.10003080
add esp, 4
cmp eax, ebx
jne 0x10021dd2
cmp esi, 7
jb 0x10021dd2
xor eax, eax
cmp esi, 7
setne al
cmp eax, ebx
jne 0x10021dd2
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x100]
lea ecx, [ebp + 0x20]
push eax
call fcn.10004010
jmp 0x10021e3e
mov ecx, str.lasttime
lea edi, [esp + 0x130]
call fcn.10025b30
test eax, eax
jne 0x10021dfc
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x100]
lea ecx, [ebp + 0x3c]
push edx
call fcn.10004010
jmp 0x10021e3e
mov ecx, str.usagecount
lea edi, [esp + 0x130]
call fcn.10025b30
test eax, eax
jne 0x10021e3e
cmp dword [esp + 0x10c], ebx
jbe 0x10021e3e
cmp dword [esp + 0x110], 0x10
mov eax, dword [esp + 0xfc]
jae 0x10021e32
lea eax, [esp + 0xfc]
push eax
call fcn.1008fce0
mov dword [ebp + 0x58], eax
add esp, 4
mov esi, 0x10
cmp dword [esp + 0x110], esi
jb 0x10021e5c
mov eax, dword [esp + 0xfc]
push eax
call fcn.1007de55
add esp, 4
mov byte [esp + 0x15c], 3
mov dword [esp + 0x110], 0xf
mov dword [esp + 0x10c], ebx
mov byte [esp + 0xfc], bl
cmp dword [esp + 0x148], esi
jb 0x10021e96
mov ecx, dword [esp + 0x134]
push ecx
call fcn.1007de55
add esp, 4
mov eax, dword [esp + 0x24]
inc dword [esp + 0x14]
inc eax
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x24], eax
jl 0x10021ba0
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
jne 0x10021ebc
xor eax, eax
jmp 0x10021ec4
mov eax, dword [eax + 0x14]
sub eax, ecx
sar eax, 2
mov edi, dword [esp + 0x30]
mov esi, dword [edi + 0x10]
mov edx, esi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x10021ee0
mov dword [esi], ebp
add esi, 4
mov dword [edi + 0x10], esi
jmp 0x10021efe
cmp ecx, esi
jbe 0x10021ee9
call fcn.1008e79d
mov eax, dword [edi]
push esi
push eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x78]
push ecx
mov eax, edi
call fcn.10009cc0
mov eax, dword [esp + 0x2c]
inc eax
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
jl 0x10021b60
cmp dword [esp + 0x12c], 0x10
jb 0x10021f2b
mov edx, dword [esp + 0x118]
push edx
call fcn.1007de55
add esp, 4
lea ecx, [esp + 0xc0]
mov dword [esp + 0x12c], 0xf
mov dword [esp + 0x128], ebx
mov byte [esp + 0x118], bl
mov dword [esp + 0x15c], 0xffffffff
call fcn.10022180
lea eax, [esp + 0xc0]
push eax
mov dword [esp + 0xc4], vtable.std::ios_base.0
call fcn.100a9acf
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x154]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.1008e4a2
add esp, 0x14c
ret