Function at 0x4f6940
Capabilities:
Validate payment card number using luhn algorithm
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58b3cc
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x5f8310]
xor eax, ebp
mov dword [ebp - 0x190], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24c], ecx
mov byte [ebp - 0x240], 0x1b
mov byte [ebp - 0x23f], 0x30
mov byte [ebp - 0x23e], 0
mov byte [ebp - 0x19c], 0xd
mov byte [ebp - 0x19b], 0xa
mov byte [ebp - 0x19a], 0
mov dword [ebp - 0x184], 2
mov dword [ebp - 0x180], 2
mov dword [ebp - 0x17c], 0xc
mov dword [ebp - 0x178], 2
mov dword [ebp - 0x174], 6
mov dword [ebp - 0x170], 0x44
mov dword [ebp - 0x16c], 3
mov dword [ebp - 0x168], 2
mov dword [ebp - 0x164], 0xc
mov dword [ebp - 0x160], 3
mov dword [ebp - 0x15c], 4
mov dword [ebp - 0x158], 0x28
mov dword [ebp - 0x154], 3
mov dword [ebp - 0x150], 7
mov dword [ebp - 0x14c], 0x4e
mov dword [ebp - 0x148], 4
mov dword [ebp - 0x144], 2
mov dword [ebp - 0x140], 0xc
mov dword [ebp - 0x13c], 4
mov dword [ebp - 0x138], 5
mov dword [ebp - 0x134], 0x32
mov dword [ebp - 0x130], 5
mov dword [ebp - 0x12c], 5
mov dword [ebp - 0x128], 0x32
mov dword [ebp - 0x124], 5
mov dword [ebp - 0x120], 7
mov dword [ebp - 0x11c], 0x4e
mov dword [ebp - 0x118], 6
mov dword [ebp - 0x114], 1
mov dword [ebp - 0x110], 2
mov dword [ebp - 0x10c], 6
mov dword [ebp - 0x108], 5
mov dword [ebp - 0x104], 0x32
mov dword [ebp - 0x100], 6
mov dword [ebp - 0xfc], 7
mov dword [ebp - 0xf8], 0x4e
mov dword [ebp - 0xf4], 7
mov dword [ebp - 0xf0], 5
mov dword [ebp - 0xec], 0x32
mov dword [ebp - 0xe8], 7
mov dword [ebp - 0xe4], 7
mov dword [ebp - 0xe0], 0x4e
mov dword [ebp - 0xdc], 8
mov dword [ebp - 0xd8], 5
mov dword [ebp - 0xd4], 0x32
mov dword [ebp - 0xd0], 8
mov dword [ebp - 0xcc], 7
mov dword [ebp - 0xc8], 0x4e
mov dword [ebp - 0xc4], 9
mov dword [ebp - 0xc0], 7
mov dword [ebp - 0xbc], 0x4e
mov dword [ebp - 0xb8], 0xa
mov dword [ebp - 0xb4], 1
mov dword [ebp - 0xb0], 2
mov dword [ebp - 0xac], 0xa
mov dword [ebp - 0xa8], 7
mov dword [ebp - 0xa4], 0x4e
mov dword [ebp - 0xa0], 0x11
mov dword [ebp - 0x9c], 2
mov dword [ebp - 0x98], 0xc
mov dword [ebp - 0x94], 0x11
mov dword [ebp - 0x90], 6
mov dword [ebp - 0x8c], 0x44
mov dword [ebp - 0x88], 0x12
mov dword [ebp - 0x84], 2
mov dword [ebp - 0x80], 0xc
mov dword [ebp - 0x7c], 0x12
mov dword [ebp - 0x78], 6
mov dword [ebp - 0x74], 0x44
mov dword [ebp - 0x70], 0xc
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x68], 0x4e
mov dword [ebp - 0x64], 0x10
mov dword [ebp - 0x60], 6
mov dword [ebp - 0x5c], 0x44
mov dword [ebp - 0x58], 0x10
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x50], 0x4e
mov dword [ebp - 0x4c], 0x11
mov dword [ebp - 0x48], 2
mov dword [ebp - 0x44], 0xc
mov dword [ebp - 0x40], 0x11
mov dword [ebp - 0x3c], 6
mov dword [ebp - 0x38], 0x44
mov dword [ebp - 0x34], 0x12
mov dword [ebp - 0x30], 2
mov dword [ebp - 0x2c], 0xc
mov dword [ebp - 0x28], 0x12
mov dword [ebp - 0x24], 6
mov dword [ebp - 0x20], 0x44
push 0x5b2908
push str.c:printm1.txt
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
mov dword [ebp - 0x188], eax
cmp dword [ebp - 0x188], 0
jne 0x4f6d0d
push 0
push 0
push str.open_printm1_error
call sub.mfc90.dll_Ordinal_1183
jmp 0x4f70b9
push 0x5b2930
mov ecx, 0x5f8888
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4f6d43
push 0
push 0
push 0x5b2934
call sub.mfc90.dll_Ordinal_1183
jmp 0x4f70b9
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18c], 0
lea eax, [ebp - 0x234]
push eax
mov ecx, dword [ebp - 0x188]
push ecx
mov ecx, dword [ebp - 0x24c]
call fcn.004f70e0
push 0x96
push 0
lea edx, [ebp - 0x234]
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x188]
push eax
call dword [sym.imp.MSVCR90.dll_feof]
add esp, 4
test eax, eax
jne 0x4f6db2
lea ecx, [ebp - 0x234]
push ecx
mov edx, dword [ebp - 0x188]
push edx
mov ecx, dword [ebp - 0x24c]
call fcn.004f70e0
jmp 0x4f6db7
jmp 0x4f70b9
mov eax, dword [ebp - 0x10]
push eax
push 1
lea ecx, [ebp - 0x234]
push ecx
call sub.MSVCR90.dll_strlen
add esp, 4
sub eax, 1
push eax
lea edx, [ebp - 0x233]
push edx
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
mov eax, dword [ebp - 0x188]
push eax
call dword [sym.imp.MSVCR90.dll_feof]
add esp, 4
test eax, eax
jne 0x4f702a
push 0x96
push 0
lea ecx, [ebp - 0x234]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [ebp - 0x234]
push edx
mov eax, dword [ebp - 0x188]
push eax
mov ecx, dword [ebp - 0x24c]
call fcn.004f70e0
movsx ecx, byte [ebp - 0x234]
sub ecx, 0x30
mov edx, dword [ebp - 0x14]
imul edx, edx, 0xc
mov eax, dword [ebp + edx - 0x184]
cdq
mov esi, 0xa
idiv esi
cmp ecx, edx
jne 0x4f6fcf
cmp dword [ebp - 0x14], 0x1e
jge 0x4f6fcf
mov eax, dword [ebp - 0x14]
imul eax, eax, 0xc
mov ecx, dword [ebp + eax - 0x184]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x14]
imul edx, edx, 0xc
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + edx - 0x184]
jne 0x4f6fcf
cmp dword [ebp - 0x18], 0x10
jl 0x4f6f27
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0xc
mov edx, dword [ebp + ecx - 0x17c]
push edx
lea eax, [ebp - 0x233]
push eax
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0xc
mov edx, dword [ebp + ecx - 0x180]
push edx
mov eax, dword [ebp - 0x14]
imul eax, eax, 0xc
mov ecx, dword [ebp - 0x24c]
mov edx, dword [ecx + 0xdc84]
mov eax, dword [ebp + eax - 0x184]
lea ecx, [edx + eax - 0x10]
push ecx
lea edx, [ebp - 0x244]
push edx
mov ecx, dword [ebp - 0x24c]
add ecx, 0x108
call fcn.0049c660
mov dword [ebp - 0x250], eax
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x254], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x254]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call fcn.004b95a0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x4f6fb1
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0xc
mov edx, dword [ebp + ecx - 0x17c]
push edx
lea eax, [ebp - 0x233]
push eax
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0xc
mov edx, dword [ebp + ecx - 0x180]
push edx
mov eax, dword [ebp - 0x14]
imul eax, eax, 0xc
mov ecx, dword [ebp + eax - 0x184]
push ecx
lea edx, [ebp - 0x248]
push edx
mov ecx, dword [ebp - 0x24c]
add ecx, 0x108
call fcn.0049c660
mov dword [ebp - 0x258], eax
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x25c], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x25c]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call fcn.004b95a0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0xc
mov edx, dword [ebp + ecx - 0x184]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
jmp 0x4f6e68
cmp dword [ebp - 0x18c], 0
jne 0x4f701b
mov ecx, dword [ebp - 0x10]
push ecx
push 2
push 1
lea edx, [ebp - 0x240]
push edx
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
mov eax, dword [ebp - 0x10]
push eax
push 1
lea ecx, [ebp - 0x234]
push ecx
call sub.MSVCR90.dll_strlen
add esp, 4
sub eax, 1
push eax
lea edx, [ebp - 0x233]
push edx
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
jmp 0x4f7025
mov dword [ebp - 0x18c], 0
jmp 0x4f6de0
mov eax, dword [ebp - 0x24c]
cmp dword [eax + 0xdc84], 0x10
jl 0x4f7055
mov ecx, dword [ebp - 0x24c]
mov edx, dword [ecx + 0xdc84]
lea eax, [edx + edx - 0x1e]
mov ecx, 6
sub ecx, eax
mov dword [ebp - 0x18], ecx
jmp 0x4f705c
mov dword [ebp - 0x18], 6
mov dword [ebp - 0x18c], 0
jmp 0x4f7077
mov edx, dword [ebp - 0x18c]
add edx, 1
mov dword [ebp - 0x18c], edx
mov eax, dword [ebp - 0x18c]
cmp eax, dword [ebp - 0x18]
jge 0x4f709c
mov ecx, dword [ebp - 0x10]
push ecx
push 2
push 1
lea edx, [ebp - 0x19c]
push edx
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
jmp 0x4f7068
mov eax, dword [ebp - 0x188]
push eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x190]
xor ecx, ebp
call fcn.005795a6
mov esp, ebp
pop ebp
ret