Function at 0x41a0c0
Capabilities:
Reference ncr atm library routines

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44701d
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x45e098]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30c], ecx
mov dword [ebp - 4], 0
mov ecx, 0x460ac4
call fcn.00407650
mov dword [ebp - 0x344], eax
push 0x456b38
push 0x456b58
push 0
mov eax, dword [ebp - 0x344]
push eax
mov ecx, dword [ebp - 0x344]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
call eax
add esp, 0x10
push 1
lea ecx, [ebp - 0x440]
call fcn.0040d1e0
mov byte [ebp - 4], 1
xor ecx, ecx
mov word [ebp - 0x2f8], cx
mov dword [ebp - 0x320], 0
lea ecx, [ebp - 0x354]
call fcn.0041bd00
mov byte [ebp - 4], 2
mov edx, dword [ebp + 0x20]
mov dword [ebp - 0x324], edx
lea eax, [ebp - 0x2f0]
push eax
push 0x23003
call dword [sym.imp.MSXFS.dll_WFSStartUp]
mov dword [ebp - 0x304], eax
mov ecx, 0x460ac4
call fcn.00407650
mov dword [ebp - 0x340], eax
mov ecx, dword [ebp - 0x304]
push ecx
push 0x456b60
push 0x456b80
push 0
mov edx, dword [ebp - 0x340]
push edx
mov eax, dword [ebp - 0x340]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
call edx
add esp, 0x14
cmp dword [ebp - 0x304], 0
je 0x41a1cc
cmp dword [ebp - 0x304], 0xffffffff
jne 0x41a23b
lea eax, [ebp - 0x2f8]
push eax
push 0
lea ecx, [ebp - 0x2f0]
push ecx
push 0x23003
push 0xc8
push 2
push 0
push 0
lea ecx, [ebp + 8]
call fcn.00408740
push eax
call dword [sym.imp.MSXFS.dll_WFSOpen]
mov dword [ebp - 0x304], eax
mov ecx, 0x460ac4
call fcn.00407650
mov dword [ebp - 0x33c], eax
mov edx, dword [ebp - 0x304]
push edx
push 0x456b98
push 0x456bb8
push 0
mov eax, dword [ebp - 0x33c]
push eax
mov ecx, dword [ebp - 0x33c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
call eax
add esp, 0x14
lea ecx, [ebp - 0x320]
push ecx
push 0
push 0
push 0x12f
movzx edx, word [ebp - 0x2f8]
push edx
call dword [sym.imp.MSXFS.dll_WFSGetInfo]
mov dword [ebp - 0x304], eax
mov ecx, 0x460ac4
call fcn.00407650
mov dword [ebp - 0x338], eax
mov eax, dword [ebp - 0x304]
push eax
push 0x456bcc
push 0x456bec
push 0
mov ecx, dword [ebp - 0x338]
push ecx
mov edx, dword [ebp - 0x338]
mov eax, dword [edx]
mov ecx, dword [eax + 0x1c]
call ecx
add esp, 0x14
push 0
push 0
mov edx, dword [ebp - 0x440]
mov eax, dword [edx + 4]
lea ecx, [ebp + eax - 0x440]
call fcn.0040a760
push 0x456c04
lea ecx, [ebp - 0x430]
push ecx
call fcn.0040fe50
add esp, 8
push 0x3b
lea edx, [ebp - 0x430]
push edx
call fcn.00410130
add esp, 8
mov eax, dword [ebp - 0x324]
push eax
lea ecx, [ebp - 0x430]
call fcn.0041c050
push 0x3b
lea ecx, [ebp - 0x430]
push ecx
call fcn.00410130
add esp, 8
lea edx, [ebp - 0xb8]
push edx
mov ecx, dword [ebp - 0x30c]
call fcn.0041b2a0
mov dword [ebp - 0x358], eax
mov eax, dword [ebp - 0x358]
mov dword [ebp - 0x35c], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x35c]
call fcn.00408740
push eax
lea ecx, [ebp - 0x430]
push ecx
call fcn.0040fe50
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xb8]
call fcn.00408c50
push 0x3b
lea edx, [ebp - 0x430]
push edx
call fcn.00410130
add esp, 8
cmp dword [ebp - 0x304], 0
je 0x41a3cb
mov dword [ebp - 0x324], 6
mov dword [ebp - 0x31c], 0
jmp 0x41a38b
mov eax, dword [ebp - 0x31c]
add eax, 1
mov dword [ebp - 0x31c], eax
cmp dword [ebp - 0x31c], 8
jge 0x41a3c6
lea ecx, [ebp - 0xe8]
call fcn.0040d400
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xe8]
push ecx
lea ecx, [ebp - 0x354]
call fcn.0041bbe0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xe8]
call fcn.00401890
jmp 0x41a37c
jmp 0x41a7da
lea ecx, [ebp - 0x40]
call fcn.0040d400
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x320]
mov eax, dword [edx + 0x1e]
mov dword [ebp - 0x314], eax
mov ecx, dword [ebp - 0x314]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x300], edx
mov ecx, 0x460ac4
call fcn.00407650
mov dword [ebp - 0x334], eax
mov eax, dword [ebp - 0x314]
movzx ecx, word [eax + 2]
push ecx
push 0x456c08
push 0x456c28
push 0
mov edx, dword [ebp - 0x334]
push edx
mov eax, dword [ebp - 0x334]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
call edx
add esp, 0x14
lea ecx, [ebp - 0x388]
call fcn.0041bd00
mov byte [ebp - 4], 6
lea eax, [ebp - 0x2f8]
push eax
lea ecx, [ebp - 0x364]
push ecx
mov ecx, dword [ebp - 0x30c]
call fcn.00419cb0
mov byte [ebp - 4], 7
mov dword [ebp - 0x2f4], 0
mov dword [ebp - 0x310], 0
jmp 0x41a484
mov edx, dword [ebp - 0x2f4]
add edx, 1
mov dword [ebp - 0x2f4], edx
mov eax, dword [ebp - 0x314]
movzx ecx, word [eax + 2]
cmp dword [ebp - 0x2f4], ecx
jge 0x41a732
mov edx, dword [ebp - 0x2f4]
mov eax, dword [ebp - 0x300]
mov ecx, dword [eax + edx*4]
movzx edx, word [ecx + 2]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x2f4]
mov ecx, dword [ebp - 0x300]
mov edx, dword [ecx + eax*4]
mov ax, word [edx + 0x2c]
mov word [ebp - 0x34], ax
push 5
mov ecx, dword [ebp - 0x2f4]
mov edx, dword [ebp - 0x300]
mov eax, dword [edx + ecx*4]
add eax, 8
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.0041d040
add esp, 0xc
mov edx, dword [ebp - 0x2f4]
mov eax, dword [ebp - 0x300]
mov ecx, dword [eax + edx*4]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x2f4]
mov ecx, dword [ebp - 0x300]
mov edx, dword [ecx + eax*4]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x24], eax
push 3
mov ecx, dword [ebp - 0x2f4]
mov edx, dword [ebp - 0x300]
mov eax, dword [edx + ecx*4]
add eax, 0xd
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0041d060
add esp, 0xc
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x70]
call fcn.00408d80
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x2f4]
mov ecx, dword [ebp - 0x300]
mov edx, dword [ecx + eax*4]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x330], eax
cvtsi2sd xmm0, dword [ebp - 0x330]
mov ecx, dword [ebp - 0x330]
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x4575a0]
lea edx, [ebp - 0x70]
push edx
lea ecx, [ebp - 0x364]
movsd qword [ebp - 0x374], xmm0
call fcn.0041b7f0
mov ax, word [eax]
movzx ecx, ax
push ecx
sub esp, 8
movsd xmm0, qword [0x457558]
movsd qword [esp], xmm0
call fcn.0041cb90
add esp, 0xc
fstp qword [ebp - 0x37c]
movsd xmm0, qword [ebp - 0x374]
mulsd xmm0, qword [ebp - 0x37c]
call fcn.00443040
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x70]
call fcn.00408c50
cmp dword [ebp - 0x38], 3
jne 0x41a629
mov ecx, dword [ebp - 0x30c]
call fcn.0041bd70
cmp eax, dword [ebp - 0x310]
jbe 0x41a629
mov edx, dword [ebp - 0x310]
push edx
mov ecx, dword [ebp - 0x30c]
call fcn.0041bd50
mov ecx, eax
call fcn.00408740
push eax
call fcn.0042db8f
add esp, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x310]
add eax, 1
mov dword [ebp - 0x310], eax
mov ecx, dword [ebp - 0x2f4]
mov edx, dword [ebp - 0x300]
mov eax, dword [edx + ecx*4]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x2f4]
mov eax, dword [ebp - 0x300]
mov ecx, dword [eax + edx*4]
mov edx, dword [ecx + 0x3c]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x2f4]
mov ecx, dword [ebp - 0x300]
mov edx, dword [ecx + eax*4]
mov eax, 4
imul ecx, eax, 0
mov edx, dword [edx + 0x30]
mov eax, dword [edx + ecx]
mov ecx, dword [eax + 0x1f]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x38], 3
je 0x41a682
cmp dword [ebp - 0x38], 0xc
jne 0x41a690
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
sub eax, edx
mov dword [ebp - 0x20], eax
mov ecx, 0x460ac4
call fcn.00407650
mov dword [ebp - 0x348], eax
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x30]
push edx
movzx eax, word [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
push 0x456c54
push str.__s___usType___d___usStatus___d__ulDenomination___d__achCurrency___s
push 0
mov edx, dword [ebp - 0x348]
push edx
mov eax, dword [ebp - 0x348]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
call edx
add esp, 0x20
cmp dword [ebp - 0x38], 0xc
jne 0x41a6e1
mov dword [ebp - 0x38], 4
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x354]
call fcn.0041bbe0
movzx ecx, byte [0x45eaf8]
test ecx, ecx
je 0x41a72d
mov edx, dword [ebp - 0x2f4]
mov eax, dword [ebp - 0x300]
mov ecx, dword [eax + edx*4]
movzx edx, word [ecx + 2]
push edx
call fcn.004145d0
add esp, 4
movzx eax, al
test eax, eax
je 0x41a72d
mov ecx, dword [0x460a90]
add ecx, 1
mov dword [0x460a90], ecx
jmp 0x41a475
mov edx, dword [ebp - 0x314]
mov ax, word [edx + 2]
mov word [ebp - 0x308], ax
jmp 0x41a757
mov cx, word [ebp - 0x308]
add cx, 1
mov word [ebp - 0x308], cx
movzx edx, word [ebp - 0x308]
cmp edx, 8
jge 0x41a79c
lea ecx, [ebp - 0xa0]
call fcn.0040d400
mov byte [ebp - 4], 9
mov dword [ebp - 0x7c], 0
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x354]
call fcn.0041bbe0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xa0]
call fcn.00401890
jmp 0x41a745
mov ecx, dword [ebp - 0x320]
push ecx
call dword [sym.imp.MSXFS.dll_WFSFreeResult]
mov byte [0x45eaf8], 0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x364]
call fcn.00419ad0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x388]
call fcn.0041bd30
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.00401890
mov dword [ebp - 0x318], 0
jmp 0x41a7f5
mov edx, dword [ebp - 0x318]
add edx, 1
mov dword [ebp - 0x318], edx
lea ecx, [ebp - 0x354]
call fcn.0041bb30
cmp dword [ebp - 0x318], eax
jae 0x41a892
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x318]
push ecx
lea ecx, [ebp - 0x354]
call fcn.0041baf0
mov ecx, eax
call fcn.0040d480
mov byte [ebp - 4], 0xa
mov ecx, 0x460ac4
call fcn.00407650
mov dword [ebp - 0x328], eax
lea ecx, [ebp - 0x58]
call fcn.00408740
push eax
push 0x456cc4
push str.__s:_st__s
push 0
mov edx, dword [ebp - 0x328]
push edx
mov eax, dword [ebp - 0x328]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
call edx
add esp, 0x14
lea ecx, [ebp - 0x58]
call fcn.00408740
push eax
lea eax, [ebp - 0x430]
push eax
call fcn.0040fe50
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.00408c50
jmp 0x41a7e6
lea ecx, [ebp - 0x354]
call fcn.0041bb60
cmp dword [ebp - 0x324], 9
jne 0x41a8af
mov byte [ebp - 0x2f9], 1
jmp 0x41a8b6
mov byte [ebp - 0x2f9], 0
movzx ecx, byte [ebp - 0x2f9]
push ecx
push 0
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x368], esp
lea ecx, [ebp - 0x440]
call fcn.0040d350
mov ecx, eax
call fcn.0040c7d0
push eax
lea ecx, [ebp - 0x440]
call fcn.0040d370
push eax
mov ecx, esi
call fcn.00408e10
mov dword [ebp - 0x36c], eax
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x30c]
call fcn.0041a9a0
movzx edx, word [ebp - 0x2f8]
test edx, edx
je 0x41a923
movzx eax, word [ebp - 0x2f8]
push eax
call dword [sym.imp.MSXFS.dll_WFSClose]
mov ecx, 0x460ac4
call fcn.00407650
mov dword [ebp - 0x32c], eax
push str.XFSCounrersReader::GetCounters
push str.____s
push 0
mov ecx, dword [ebp - 0x32c]
push ecx
mov edx, dword [ebp - 0x32c]
mov eax, dword [edx]
mov ecx, dword [eax + 0x1c]
call ecx
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x354]
call fcn.0041bce0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x440]
call fcn.0040d3d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00408c50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004261af
mov esp, ebp
pop ebp
ret 0x20