Function at 0x406740
Capabilities:
Reference ncr atm library routines

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4556a3
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
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 - 0xc8], edi
mov dword [ebp - 0xac], edi
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0
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
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
push 0
push 0x461999
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00407510
mov byte [ebp - 4], 2
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
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 3
mov ebx, dword [sym.imp.MSXFS.dll_WFSGetInfo]
push eax
push 0
push 0
push 0x12f
push esi
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0
call ebx
test eax, eax
jne 0x406d15
mov eax, dword [ebp - 0xa4]
mov edi, dword [eax + 0x1e]
lea eax, [ebp - 0xa8]
push eax
push 0
push 0
push 0x132
push esi
call ebx
test eax, eax
jne 0x406879
mov eax, dword [ebp - 0xa8]
mov eax, dword [eax + 0x1e]
mov dword [ebp - 0xac], eax
jmp 0x40690a
mov edx, eax
lea ecx, [ebp - 0xe0]
call fcn.00401080
push eax
mov edx, str.WFS_INF_CDM_CURRENCY_EXP_failed_with_error_code:
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa0]
call fcn.00407ed0
add esp, 4
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 6
call fcn.00407280
cmp dword [ebp - 0x8c], 0x10
lea eax, [ebp - 0xa0]
cmovae eax, dword [ebp - 0xa0]
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], 3
add esp, 4
mov dword [ebp - 0xac], ebx
lea ecx, [ebp - 0xa0]
mov dword [ebx], 0
call fcn.00407280
push 0xb
push str._Supplies__n
lea ecx, [ebp - 0x58]
call fcn.00407510
test edi, edi
jne 0x40698a
push str.lpCDMCashInfo_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 - 0xc8]
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 - 0x70]
call fcn.00407280
lea ecx, [ebp - 0x40]
call fcn.00407280
lea ecx, [ebp - 0x58]
call fcn.00407280
lea ecx, [ebp - 0x28]
call fcn.00407280
mov eax, esi
jmp 0x406fc1
xor eax, eax
xor esi, esi
cmp ax, word [edi + 2]
jae 0x406ab0
nop dword [eax + eax]
mov edx, esi
lea ecx, [ebp - 0xc4]
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 - 0xb0]
cmp eax, 0x10
jb 0x406a15
mov ecx, dword [ebp - 0xc4]
inc eax
cmp eax, 0x1000
jb 0x406a0c
test cl, 0x1f
jne 0x406cc3
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x406cc3
sub ecx, eax
cmp ecx, 4
jb 0x406cc3
cmp ecx, 0x23
ja 0x406cc3
mov ecx, eax
push ecx
call fcn.00428d58
add esp, 4
cmp dword [ebp - 0x74], 0x10
lea eax, [ebp - 0x88]
mov dword [ebp - 0xb0], 0xf
cmovae eax, dword [ebp - 0x88]
push eax
push 0x4687f8
push dword [0x474eb0]
mov dword [ebp - 0xb4], 0
mov byte [ebp - 0xc4], 0
call fcn.00420340
add esp, 0xc
push dword [0x474eb0]
call fcn.00443550
mov eax, dword [edi + 4]
add esp, 4
mov edx, dword [eax + esi*4]
test edx, edx
je 0x406a94
lea ecx, [ebp - 0xe0]
call fcn.004056c0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xa
call fcn.00407910
lea ecx, [ebp - 0xe0]
call fcn.00407280
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.00407280
movzx eax, word [edi + 2]
inc esi
cmp esi, eax
jl 0x4069a0
xor eax, eax
xor ebx, ebx
cmp ax, word [edi + 2]
jae 0x406c7c
nop
mov eax, dword [edi + 4]
mov eax, dword [eax + ebx*4]
cmp dword [eax + 0x30], 0
je 0x406c6f
xor ecx, ecx
xor esi, esi
cmp cx, word [eax + 0x2e]
jae 0x406c6f
nop
mov edx, esi
lea ecx, [ebp - 0xc4]
call fcn.00401080
push eax
mov edx, str.Physical_Cassette_Number:
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x88]
call fcn.00407ed0
add esp, 4
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0xb0]
cmp eax, 0x10
jb 0x406b55
mov ecx, dword [ebp - 0xc4]
inc eax
cmp eax, 0x1000
jb 0x406b4c
test cl, 0x1f
jne 0x406cc3
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x406cc3
sub ecx, eax
cmp ecx, 4
jb 0x406cc3
cmp ecx, 0x23
ja 0x406cc3
mov ecx, eax
push ecx
call fcn.00428d58
add esp, 4
cmp dword [ebp - 0x74], 0x10
lea eax, [ebp - 0x88]
mov dword [ebp - 0xb0], 0xf
cmovae eax, dword [ebp - 0x88]
push eax
push 0x4687f8
push dword [0x474eb0]
mov dword [ebp - 0xb4], 0
mov byte [ebp - 0xc4], 0
call fcn.00420340
add esp, 0xc
push dword [0x474eb0]
call fcn.00443550
mov eax, dword [edi + 4]
lea ecx, [ebp - 0xe0]
add esp, 4
mov eax, dword [eax + ebx*4]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + esi*4]
call fcn.00405e10
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xe
call fcn.00407910
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0xcc]
cmp eax, 0x10
jb 0x406c1b
mov ecx, dword [ebp - 0xe0]
inc eax
cmp eax, 0x1000
jb 0x406c12
test cl, 0x1f
jne 0x406cc3
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x406cc3
sub ecx, eax
cmp ecx, 4
jb 0x406cc3
cmp ecx, 0x23
ja 0x406cc3
mov ecx, eax
push ecx
call fcn.00428d58
add esp, 4
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x74]
cmp ecx, 0x10
jb 0x406c5c
mov eax, dword [ebp - 0x88]
inc ecx
cmp ecx, 0x1000
jb 0x406c53
test al, 0x1f
jne 0x406cc3
mov ecx, dword [eax - 4]
cmp ecx, eax
jae 0x406cc3
sub eax, ecx
cmp eax, 4
jb 0x406cc3
cmp eax, 0x23
ja 0x406cc3
mov eax, ecx
push eax
call fcn.00428d58
add esp, 4
mov eax, dword [edi + 4]
inc esi
mov eax, dword [eax + ebx*4]
movzx eax, word [eax + 0x2e]
cmp esi, eax
jl 0x406ae0
movzx eax, word [edi + 2]
inc ebx
cmp ebx, eax
jl 0x406ac0
push 0xc
push str.__Supplies__n
lea ecx, [ebp - 0x40]
call fcn.004077e0
mov edx, dword [ebp - 0xac]
lea ecx, [ebp - 0xe0]
call fcn.00406360
push eax
lea ecx, [ebp - 0x70]
call fcn.004072f0
mov eax, dword [ebp - 0xcc]
cmp eax, 0x10
jb 0x406cf5
mov ecx, dword [ebp - 0xe0]
inc eax
cmp eax, 0x1000
jb 0x406cec
test cl, 0x1f
je 0x406cc8
call fcn.0044292a
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x406cd4
call fcn.0044292a
sub ecx, eax
cmp ecx, 4
jae 0x406ce0
call fcn.0044292a
cmp ecx, 0x23
jbe 0x406cea
call fcn.0044292a
mov ecx, eax
push ecx
call fcn.00428d58
add esp, 4
push dword [ebp - 0xa4]
mov esi, dword [sym.imp.MSXFS.dll_WFSFreeResult]
call esi
push 0
call esi
push dword [ebp - 0xa8]
call esi
mov edi, dword [ebp - 0xc8]
lea eax, [ebp - 0x40]
push eax
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0xe0]
call fcn.004080f0
add esp, 4
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0xf
push ecx
mov edx, eax
lea ecx, [ebp - 0xc4]
call fcn.004080c0
add esp, 4
lea ecx, [ebp - 0x28]
push eax
call fcn.004072f0
mov eax, dword [ebp - 0xb0]
cmp eax, 0x10
jb 0x406d9b
mov ecx, dword [ebp - 0xc4]
inc eax
cmp eax, 0x1000
jb 0x406d92
test cl, 0x1f
je 0x406d6e
call fcn.0044292a
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x406d7a
call fcn.0044292a
sub ecx, eax
cmp ecx, 4
jae 0x406d86
call fcn.0044292a
cmp ecx, 0x23
jbe 0x406d90
call fcn.0044292a
mov ecx, eax
push ecx
call fcn.00428d58
add esp, 4
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xb0], 0xf
mov dword [ebp - 0xb4], 0
mov byte [ebp - 0xc4], 0
cmp eax, 0x10
jb 0x406e06
mov ecx, dword [ebp - 0xe0]
inc eax
cmp eax, 0x1000
jb 0x406dfd
test cl, 0x1f
je 0x406dd9
call fcn.0044292a
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x406de5
call fcn.0044292a
sub ecx, eax
cmp ecx, 4
jae 0x406df1
call fcn.0044292a
cmp ecx, 0x23
jbe 0x406dfb
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 0x406e3a
mov eax, dword [ebp - 0x18]
add eax, 1
je 0x406e46
push eax
lea eax, [ebp - 0x28]
push eax
push edi
call fcn.0043f7f0
mov ecx, dword [ebp - 0x14]
add esp, 0xc
jmp 0x406e46
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, dword [ebp - 0x5c]
mov dword [edi + 0x14], ecx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp eax, 0x10
jb 0x406eab
mov ecx, dword [ebp - 0x70]
inc eax
cmp eax, 0x1000
jb 0x406ea2
test cl, 0x1f
je 0x406e7e
call fcn.0044292a
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x406e8a
call fcn.0044292a
sub ecx, eax
cmp ecx, 4
jae 0x406e96
call fcn.0044292a
cmp ecx, 0x23
jbe 0x406ea0
call fcn.0044292a
mov ecx, eax
push ecx
call fcn.00428d58
add esp, 4
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
cmp eax, 0x10
jb 0x406f07
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x1000
jb 0x406efe
test cl, 0x1f
je 0x406eda
call fcn.0044292a
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x406ee6
call fcn.0044292a
sub ecx, eax
cmp ecx, 4
jae 0x406ef2
call fcn.0044292a
cmp ecx, 0x23
jbe 0x406efc
call fcn.0044292a
mov ecx, eax
push ecx
call fcn.00428d58
add esp, 4
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
cmp eax, 0x10
jb 0x406f63
mov ecx, dword [ebp - 0x58]
inc eax
cmp eax, 0x1000
jb 0x406f5a
test cl, 0x1f
je 0x406f36
call fcn.0044292a
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x406f42
call fcn.0044292a
sub ecx, eax
cmp ecx, 4
jae 0x406f4e
call fcn.0044292a
cmp ecx, 0x23
jbe 0x406f58
call fcn.0044292a
mov ecx, eax
push ecx
call fcn.00428d58
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
cmp eax, 0x10
jb 0x406fbf
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x406fb6
test cl, 0x1f
je 0x406f92
call fcn.0044292a
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x406f9e
call fcn.0044292a
sub ecx, eax
cmp ecx, 4
jae 0x406faa
call fcn.0044292a
cmp ecx, 0x23
jbe 0x406fb4
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