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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ec40
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x640040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 4], 0
mov al, byte [ebp + 8]
cmp byte [edi + 0x1c], 0
jne 0x51fb27
test al, al
jne 0x51fb19
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
sub esi, dword [edi + 0xc]
mov byte [ebp - 0x19], 0
mov ecx, dword [edi]
call fcn.00524cc0
test ax, ax
jne 0x51fa1c
cmp esi, dword [edi + 8]
jmp 0x51fa1f
cmp esi, dword [edi + 4]
jbe 0x51fb16
mov byte [ebp - 0x19], 1
mov ebx, dword [edi]
mov ecx, dword [ebx + 0x168]
test ecx, ecx
je 0x51fa93
movzx esi, word [ebx + 0x166]
mov edx, dword [edi + 0x18]
sub esi, 4
jb 0x51fa55
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x51fa5a
add edx, 4
add ecx, 4
sub esi, 4
jae 0x51fa44
cmp esi, 0xfffffffc
je 0x51fa93
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x51fb12
cmp esi, 0xfffffffd
je 0x51fa93
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x51fb12
cmp esi, 0xfffffffe
je 0x51fa93
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x51fb12
cmp esi, 0xffffffff
je 0x51fa93
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
jne 0x51fb12
mov ecx, dword [ebx + 0x140]
test ecx, ecx
je 0x51fab6
movzx eax, word [ebx + 0x146]
push eax
push ecx
push dword [edi + 0x10]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x51fb12
mov eax, dword [edi]
cmp dword [eax + 0x14c], 0
je 0x51fb16
xor ebx, ebx
mov dword [ebp - 0x24], ebx
xor esi, esi
mov dword [ebp - 0x28], esi
mov ecx, dword [edi]
movzx eax, word [ecx + 0x150]
cmp esi, eax
jge 0x51fb16
mov eax, dword [ecx + 0x160]
cmp byte [esi + eax], 0
je 0x51fb0f
mov eax, dword [ecx + 0x158]
movzx eax, word [eax + esi*2]
push eax
mov eax, dword [ecx + 0x14c]
push dword [eax + ebx*4]
mov eax, dword [edi + 0x14]
push dword [eax + ebx*4]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x51fb12
inc ebx
mov dword [ebp - 0x24], ebx
inc esi
jmp 0x51fac8
mov byte [edi + 0x1c], 1
mov al, byte [ebp + 8]
cmp byte [edi + 0x1c], 0
jne 0x51fb27
test al, al
je 0x51fd63
mov dword [ebp - 0x18], 0
mov eax, dword [edi]
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push 0
push eax
call dword [ecx + 0xc]
mov ebx, eax
mov dword [ebp - 0x20], ebx
test ebx, ebx
js 0x51fd1d
cmp dword [edi + 0x20], 0
jne 0x51fb78
push 0x14d
push str.c:DevjenkinsworkspaceiTools_for_IDMDeployer_V9.87_servermodbuseripinterface.cpp
push 0x587798
mov eax, dword [0x641a88]
add eax, 0x32c
push eax
call fcn.004ec040
add esp, 0x10
mov eax, ebx
jmp 0x51fd6f
mov byte [ebp - 4], 1
mov eax, dword [edi + 0x20]
mov ecx, dword [eax]
push dword [ebp - 0x18]
push eax
call dword [ecx + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x28]
mov ebx, dword [sym.imp.ole32.dll_CoTaskMemFree]
test ecx, ecx
je 0x51fba1
push ecx
call ebx
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x28], 0
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x2c], 0
je 0x51fbe4
xor esi, esi
mov dword [ebp - 0x2c], esi
movzx eax, word [ecx + 0x30]
cmp esi, eax
jge 0x51fbdc
mov eax, dword [ecx + 0x2c]
push dword [eax + esi*4]
call ebx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x2c]
mov dword [eax + esi*4], 0
inc esi
mov dword [ebp - 0x2c], esi
mov ecx, dword [ebp - 0x18]
jmp 0x51fbb6
push dword [ecx + 0x2c]
call ebx
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x2c], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x34]
test ecx, ecx
je 0x51fbfb
push ecx
call ebx
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x34], 0
push dword [ebp - 0x18]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
call esi
mov eax, dword [ebp - 0x18]
add eax, 0x10
push eax
call esi
push dword [ebp - 0x18]
call ebx
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 0x20]
test ebx, ebx
js 0x51fd1d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0xc], eax
mov ecx, dword [edi]
movzx eax, word [ecx + 0x166]
test ax, ax
je 0x51fc5d
push eax
push dword [ecx + 0x168]
push dword [edi + 0x18]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [edi]
mov ecx, dword [eax + 0x140]
test ecx, ecx
je 0x51fc7e
movzx eax, word [eax + 0x146]
push eax
push ecx
push dword [edi + 0x10]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
mov eax, dword [edi]
cmp dword [eax + 0x14c], 0
je 0x51fcd9
xor ebx, ebx
mov dword [ebp - 0x30], ebx
xor esi, esi
mov dword [ebp - 0x34], esi
mov ecx, dword [edi]
movzx eax, word [ecx + 0x150]
cmp esi, eax
jge 0x51fcd6
mov eax, dword [ecx + 0x160]
cmp byte [esi + eax], 0
je 0x51fcd3
mov eax, dword [ecx + 0x158]
movzx eax, word [eax + esi*2]
push eax
mov eax, dword [ecx + 0x14c]
push dword [eax + esi*4]
mov eax, dword [edi + 0x14]
push dword [eax + ebx*4]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
inc ebx
mov dword [ebp - 0x30], ebx
inc esi
jmp 0x51fc90
mov ebx, dword [ebp - 0x20]
mov byte [edi + 0x1c], 0
mov eax, ebx
jmp 0x51fd6f
mov eax, ebx
jmp 0x51fd6f
mov dword [ebp - 4], 0xffffffff
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0055c86d
mov esp, ebp
pop ebp
ret 4