Function at 0x4196f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5e1da0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x1614], 4
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x110], 0
jne 0x419980
push edi
push str.POSDataDisplayMain::ReadCallbackPOSdataVOD__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x400
mov dword [esi + 0xa4], 0x4178b0
call fcn.004575d3
add esp, 4
cmp dword [esi + 0x168c], 0
mov edi, eax
mov dword [ebp - 0x114], edi
jne 0x419972
push ebx
cmp dword [esi + 0xb4], 0
jne 0x419971
mov edx, dword [esi + 0xa4]
push esi
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x10c]
push ecx
push 0x400
push edi
call edx
add esp, 0x14
cmp dword [esi + 0x168c], 0
jne 0x419971
test eax, eax
jle 0x4199bb
cmp dword [esi + 0x1614], 4
jne 0x419807
xor ebx, ebx
lea ecx, [ecx]
cmp dword [esi + 0xb4], 0
jne 0x4199bb
cmp ebx, 0xc8
jge 0x4199bb
cmp dword [esi + 0x16c8], 0xd
jne 0x4197fa
mov eax, dword [esi + 0x16b8]
sub eax, dword [ebp - 0x10c]
cmp eax, 0xffffffec
jg 0x4197fa
push 0xf
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp dword [esi + 0x168c], 0
je 0x4197b0
jmp 0x4199bb
cmp dword [esi + 0x168c], 0
jne 0x419971
mov ecx, dword [esi + 0x128]
add ecx, 0x9008b4
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x100
lea edx, [ebp - 0x104]
push 0
push edx
call fcn.00552060
mov eax, dword [edi + 0x1e]
mov ebx, dword [edi + 0xc]
add esp, 0xc
cmp eax, 0x100
jbe 0x419859
mov ecx, dword [esi + 0x128]
mov eax, dword [ecx + 0x9008ac]
mov edx, dword [eax + 0x14]
add ecx, 0x9008ac
call edx
jmp 0x4199c3
cmp dword [esi + 0x168c], 0
jne 0x41995a
push eax
lea eax, [edi + 0x22]
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.005520f0
add esp, 0xc
cmp dword [esi + 0xb0], 0
jne 0x419994
mov edx, dword [esi + 0x128]
mov dword [edx + 0xb8], 0
cmp ebx, 1
jne 0x4198a3
mov ecx, esi
call fcn.00417e30
cmp dword [esi + 0x168c], 0
jne 0x41995a
mov eax, dword [esi + 0x128]
mov ebx, dword [eax + 0xbc]
cmp ebx, 0xb
jge 0x4199a4
mov ecx, dword [eax + 0xc0]
dec ecx
cmp ebx, ecx
jne 0x419931
test ebx, ebx
jle 0x419916
mov edi, 0x8c
mov dword [ebp - 0x108], ebx
nop
mov ecx, dword [esi + 0x128]
push 0x58a320
add ecx, edi
call fcn.004011e0
mov eax, dword [esi + 0x128]
lea edx, [edi + eax + 4]
push edx
lea ecx, [edi + eax]
call fcn.00402660
add edi, 4
dec dword [ebp - 0x108]
jne 0x4198e0
mov edi, dword [ebp - 0x114]
mov ecx, dword [esi + 0x128]
lea eax, [ebp - 0x104]
push eax
lea ecx, [ecx + ebx*4 + 0x8c]
call fcn.004011e0
jmp 0x419945
lea ecx, [ebp - 0x104]
push ecx
lea ecx, [eax + ebx*4 + 0x90]
call fcn.004011e0
inc ebx
mov edx, dword [esi + 0x128]
mov dword [edx + 0xbc], ebx
cmp dword [esi + 0x168c], 0
je 0x4199a4
mov ecx, dword [esi + 0x128]
mov edx, dword [ecx + 0x9008ac]
mov eax, dword [edx + 0x14]
add ecx, 0x9008ac
call eax
pop ebx
test edi, edi
je 0x41997f
push edi
call fcn.004575de
add esp, 4
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.005520da
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x128]
mov dword [eax + 0xb8], 1
mov ecx, dword [esi + 0x128]
mov edx, dword [ecx + 0x9008ac]
mov eax, dword [edx + 0x14]
add ecx, 0x9008ac
call eax
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0x168c], 0
je 0x419760
jmp 0x419971