Function at 0x414180
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 + 0x1604], 4
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x110], 0
jne 0x414410
push edi
push str.POSDataDisplayMain::ReadCallbackPOSdataVOD__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x400
mov dword [esi + 0xa4], 0x411fc0
call fcn.004575d3
add esp, 4
cmp dword [esi + 0x167c], 0
mov edi, eax
mov dword [ebp - 0x114], edi
jne 0x414402
push ebx
cmp dword [esi + 0xb4], 0
jne 0x414401
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 + 0x167c], 0
jne 0x414401
test eax, eax
jle 0x41444b
cmp dword [esi + 0x1604], 4
jne 0x414297
xor ebx, ebx
lea ecx, [ecx]
cmp dword [esi + 0xb4], 0
jne 0x41444b
cmp ebx, 0xc8
jge 0x41444b
cmp dword [esi + 0x16bc], 0xd
jne 0x41428a
mov eax, dword [esi + 0x16a8]
sub eax, dword [ebp - 0x10c]
cmp eax, 0xffffffec
jg 0x41428a
push 0xf
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp dword [esi + 0x167c], 0
je 0x414240
jmp 0x41444b
cmp dword [esi + 0x167c], 0
jne 0x414401
mov ecx, dword [esi + 0x11c]
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 0x4142e9
mov ecx, dword [esi + 0x11c]
mov eax, dword [ecx + 0x9008ac]
mov edx, dword [eax + 0x14]
add ecx, 0x9008ac
call edx
jmp 0x414453
cmp dword [esi + 0x167c], 0
jne 0x4143ea
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 0x414424
mov edx, dword [esi + 0x11c]
mov dword [edx + 0xb8], 0
cmp ebx, 1
jne 0x414333
mov ecx, esi
call fcn.004124e0
cmp dword [esi + 0x167c], 0
jne 0x4143ea
mov eax, dword [esi + 0x11c]
mov ebx, dword [eax + 0xbc]
cmp ebx, 0xb
jge 0x414434
mov ecx, dword [eax + 0xc0]
dec ecx
cmp ebx, ecx
jne 0x4143c1
test ebx, ebx
jle 0x4143a6
mov edi, 0x8c
mov dword [ebp - 0x108], ebx
nop
mov ecx, dword [esi + 0x11c]
push 0x58a320
add ecx, edi
call fcn.004011e0
mov eax, dword [esi + 0x11c]
lea edx, [edi + eax + 4]
push edx
lea ecx, [edi + eax]
call fcn.00402660
add edi, 4
dec dword [ebp - 0x108]
jne 0x414370
mov edi, dword [ebp - 0x114]
mov ecx, dword [esi + 0x11c]
lea eax, [ebp - 0x104]
push eax
lea ecx, [ecx + ebx*4 + 0x8c]
call fcn.004011e0
jmp 0x4143d5
lea ecx, [ebp - 0x104]
push ecx
lea ecx, [eax + ebx*4 + 0x90]
call fcn.004011e0
inc ebx
mov edx, dword [esi + 0x11c]
mov dword [edx + 0xbc], ebx
cmp dword [esi + 0x167c], 0
je 0x414434
mov ecx, dword [esi + 0x11c]
mov edx, dword [ecx + 0x9008ac]
mov eax, dword [edx + 0x14]
add ecx, 0x9008ac
call eax
pop ebx
test edi, edi
je 0x41440f
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 + 0x11c]
mov dword [eax + 0xb8], 1
mov ecx, dword [esi + 0x11c]
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 + 0x167c], 0
je 0x4141f0
jmp 0x414401