Function at 0x40f570
Capabilities:
Reference ncr atm library routines

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x456897
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x472008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0x98], edi
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
push 0
push 0x461999
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
call fcn.00407510
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
push 0
push 0x461999
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
call fcn.00407510
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 2
mov ebx, dword [sym.imp.MSXFS.dll_WFSGetInfo]
push eax
push 0
push 0
push 0x517
push esi
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
call ebx
test eax, eax
jne 0x40fa99
mov eax, dword [ebp - 0x8c]
push str.WFS_INF_CIM_CASH_UNIT_INFO_successful
push 0x4687f8
push dword [0x474eb0]
mov edi, dword [eax + 0x1e]
mov dword [ebp - 0x98], 0
call fcn.00420340
add esp, 0xc
push dword [0x474eb0]
call fcn.00443550
add esp, 4
lea eax, [ebp - 0x90]
push eax
push 0
push 0
push 0x51a
push esi
call ebx
test eax, eax
jne 0x40f6e1
mov eax, dword [ebp - 0x90]
push str.WFS_INF_CIM_BANKNOTE_TYPES_successful
push 0x4687f8
push dword [0x474eb0]
mov eax, dword [eax + 0x1e]
mov dword [ebp - 0x98], eax
call fcn.00420340
add esp, 0xc
push dword [0x474eb0]
call fcn.00443550
add esp, 4
jmp 0x40f74d
mov edx, eax
lea ecx, [ebp - 0x40]
call fcn.00401080
push eax
mov edx, str.WFS_INF_CIM_BANKNOTE_TYPES_failed_with_error_code:
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x88]
call fcn.00407ed0
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.00407280
cmp dword [ebp - 0x74], 0x10
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
push eax
push 0x4687f8
push dword [0x474eb0]
call fcn.00420340
add esp, 0xc
push dword [0x474eb0]
call fcn.00443550
add esp, 4
lea ecx, [ebp - 0x88]
call fcn.00407280
lea eax, [ebp - 0x94]
push eax
push 0
push 0
push 0x519
push esi
call ebx
test eax, eax
jne 0x40f795
mov eax, dword [ebp - 0x94]
push str.WFS_INF_CIM_CURRENCY_EXP_successful
push 0x4687f8
push dword [0x474eb0]
mov ebx, dword [eax + 0x1e]
call fcn.00420340
add esp, 0xc
push dword [0x474eb0]
call fcn.00443550
add esp, 4
jmp 0x40f811
mov edx, eax
lea ecx, [ebp - 0x88]
call fcn.00401080
push eax
mov edx, str.WFS_INF_CIM_CURRENCY_EXP_failed_with_error_code:
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.00407ed0
add esp, 4
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 6
call fcn.00407280
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
push 0x4687f8
push dword [0x474eb0]
call fcn.00420340
add esp, 0xc
push dword [0x474eb0]
call fcn.00443550
add esp, 4
push 4
call fcn.00428d6b
mov ebx, eax
mov byte [ebp - 4], 2
add esp, 4
lea ecx, [ebp - 0x40]
mov dword [ebx], 0
call fcn.00407280
push 0xb
push str._Supplies__n
lea ecx, [ebp - 0x70]
call fcn.00407510
test edi, edi
jne 0x40f889
push str.lpCIMCashInfo_is_NULL._No_cassette_information_is_available.
push 0x4687f8
push dword [0x474eb0]
call fcn.00420340
add esp, 0xc
push dword [0x474eb0]
call fcn.00443550
mov esi, dword [ebp - 0x9c]
add esp, 4
mov ecx, esi
push edi
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], edi
push 0x461999
mov byte [esi], 0
call fcn.00407510
lea ecx, [ebp - 0x58]
call fcn.00407280
lea ecx, [ebp - 0x70]
call fcn.00407280
lea ecx, [ebp - 0x28]
call fcn.00407280
mov eax, esi
jmp 0x40fccb
xor eax, eax
xor esi, esi
cmp ax, word [edi]
jae 0x40f9b9
nop word [eax + eax]
mov edx, esi
lea ecx, [ebp - 0xb4]
call fcn.00401080
push eax
mov edx, str.Calling_getCassetteDetails__Cassettes_Number
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x88]
call fcn.00407ed0
add esp, 4
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0xa0]
cmp eax, 0x10
jb 0x40f915
mov ecx, dword [ebp - 0xb4]
inc eax
cmp eax, 0x1000
jb 0x40f90c
test cl, 0x1f
jne 0x40fb32
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40fb32
sub ecx, eax
cmp ecx, 4
jb 0x40fb32
cmp ecx, 0x23
ja 0x40fb32
mov ecx, eax
push ecx
call fcn.00428d58
add esp, 4
cmp dword [ebp - 0x74], 0x10
lea eax, [ebp - 0x88]
mov dword [ebp - 0xa0], 0xf
cmovae eax, dword [ebp - 0x88]
push eax
push 0x4687f8
push dword [0x474eb0]
mov dword [ebp - 0xa4], 0
mov byte [ebp - 0xb4], 0
call fcn.00420340
add esp, 0xc
push dword [0x474eb0]
call fcn.00443550
mov eax, dword [edi + 2]
add esp, 4
mov edx, dword [eax + esi*4]
test edx, edx
je 0x40f99e
push ebx
push dword [ebp - 0x98]
lea ecx, [ebp - 0xd0]
call fcn.0040e5f0
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0xa
call fcn.00407910
lea ecx, [ebp - 0xd0]
call fcn.00407280
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 2
call fcn.00407280
movzx eax, word [edi]
inc esi
cmp esi, eax
jl 0x40f8a0
xor eax, eax
xor ebx, ebx
cmp ax, word [edi]
jae 0x40fa64
mov eax, dword [edi + 2]
mov ecx, dword [eax + ebx*4]
cmp dword [ecx + 0x2e], 0
je 0x40fa58
xor eax, eax
xor esi, esi
cmp ax, word [ecx + 0x2c]
jae 0x40fa58
mov eax, dword [ecx + 0x2e]
lea ecx, [ebp - 0x40]
mov edx, dword [eax + esi*4]
call fcn.0040ef50
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xb
call fcn.00407910
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x40fa49
mov eax, dword [ebp - 0x40]
inc ecx
cmp ecx, 0x1000
jb 0x40fa40
test al, 0x1f
jne 0x40fb32
mov ecx, dword [eax - 4]
cmp ecx, eax
jae 0x40fb32
sub eax, ecx
cmp eax, 4
jb 0x40fb32
cmp eax, 0x23
ja 0x40fb32
mov eax, ecx
push eax
call fcn.00428d58
add esp, 4
mov eax, dword [edi + 2]
inc esi
mov ecx, dword [eax + ebx*4]
movzx eax, word [ecx + 0x2c]
cmp esi, eax
jl 0x40f9e0
movzx eax, word [edi]
inc ebx
cmp ebx, eax
jl 0x40f9c6
push 0xc
push str.__Supplies__n
lea ecx, [ebp - 0x58]
call fcn.004077e0
push dword [ebp - 0x8c]
mov esi, dword [sym.imp.MSXFS.dll_WFSFreeResult]
call esi
push dword [ebp - 0x90]
call esi
push dword [ebp - 0x94]
call esi
mov edi, dword [ebp - 0x9c]
jmp 0x40faff
mov edx, eax
lea ecx, [ebp - 0xd0]
call fcn.00401080
push eax
mov edx, str.WFS_INF_CIM_CASH_UNIT_INFO_failed_with_error_code:
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x40]
call fcn.00407ed0
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd0]
call fcn.00407280
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
push 0x4687f8
push dword [0x474eb0]
call fcn.00420340
add esp, 0xc
push dword [0x474eb0]
call fcn.00443550
add esp, 4
lea ecx, [ebp - 0x40]
call fcn.00407280
lea eax, [ebp - 0x58]
push eax
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x40]
call fcn.004080f0
add esp, 4
lea ecx, [ebp - 0x28]
push eax
call fcn.004072f0
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x40fb64
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x1000
jb 0x40fb5b
test cl, 0x1f
je 0x40fb37
call fcn.0044292a
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x40fb43
call fcn.0044292a
sub ecx, eax
cmp ecx, 4
jae 0x40fb4f
call fcn.0044292a
cmp ecx, 0x23
jbe 0x40fb59
call fcn.0044292a
mov ecx, eax
push ecx
call fcn.00428d58
add esp, 4
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jae 0x40fb98
mov eax, dword [ebp - 0x18]
add eax, 1
je 0x40fba4
push eax
lea eax, [ebp - 0x28]
push eax
push edi
call fcn.0043f7f0
mov ecx, dword [ebp - 0x14]
add esp, 0xc
jmp 0x40fba4
mov eax, dword [ebp - 0x28]
mov dword [edi], eax
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x10], eax
mov eax, 0xf
mov dword [edi + 0x14], ecx
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp ecx, 0x10
jb 0x40fc0f
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0x58]
cmp eax, 0x1000
jb 0x40fc03
test cl, 0x1f
je 0x40fbdf
call fcn.0044292a
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x40fbeb
call fcn.0044292a
sub ecx, eax
cmp ecx, 4
jae 0x40fbf7
call fcn.0044292a
cmp ecx, 0x23
jbe 0x40fc01
call fcn.0044292a
mov ecx, eax
push ecx
call fcn.00428d58
mov eax, dword [ebp - 0x14]
add esp, 4
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
cmp ecx, 0x10
jb 0x40fc70
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0x70]
cmp eax, 0x1000
jb 0x40fc64
test cl, 0x1f
je 0x40fc40
call fcn.0044292a
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x40fc4c
call fcn.0044292a
sub ecx, eax
cmp ecx, 4
jae 0x40fc58
call fcn.0044292a
cmp ecx, 0x23
jbe 0x40fc62
call fcn.0044292a
mov ecx, eax
push ecx
call fcn.00428d58
mov eax, dword [ebp - 0x14]
add esp, 4
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
cmp eax, 0x10
jb 0x40fcc9
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x40fcc0
test cl, 0x1f
je 0x40fc9c
call fcn.0044292a
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x40fca8
call fcn.0044292a
sub ecx, eax
cmp ecx, 4
jae 0x40fcb4
call fcn.0044292a
cmp ecx, 0x23
jbe 0x40fcbe
call fcn.0044292a
mov ecx, eax
push ecx
call fcn.00428d58
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00428bf1
mov esp, ebp
pop ebp
ret