Function at 0x5157e0
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
test eax, eax
mov dword [ebp - 4], 0
jne 0x515851
mov eax, dword [ebp + 0xc]
push eax
call fcn.00516390
add esp, 4
mov dword [ebp + 0x10], eax
test eax, eax
jne 0x515851
mov ecx, dword [ebp + 8]
lea eax, [ecx + 0x7528]
mov ecx, dword [str.205:_No_input_data]
mov edx, eax
mov dword [edx], ecx
mov ecx, dword [0x57bf9c]
mov dword [edx + 4], ecx
mov ecx, dword [0x57bfa0]
mov dword [edx + 8], ecx
mov ecx, dword [0x57bfa4]
mov dword [edx + 0xc], ecx
mov cx, word [0x57bfa8]
mov word [edx + 0x10], cx
mov cl, byte [0x57bfaa]
mov byte [edx + 0x12], cl
jmp 0x515c1c
mov ebx, dword [ebp + 8]
mov edi, 0x584808
lea esi, [ebx + 0x28]
mov dl, byte [esi]
mov cl, dl
cmp dl, byte [edi]
jne 0x515880
test cl, cl
je 0x51587c
mov dl, byte [esi + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x515880
add esi, 2
add edi, 2
test cl, cl
jne 0x51585c
xor ecx, ecx
jmp 0x515885
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x51589b
mov ecx, dword [str.out.gif]
mov dword [ebx + 0x28], ecx
mov edx, dword [0x57bf94]
mov dword [ebx + 0x2c], edx
add eax, 4
and al, 0xfc
call fcn.0051c710
mov eax, dword [ebx]
mov dword [ebp + 8], esp
cmp eax, 1
jge 0x5158ce
lea edi, [ebx + 0x7528]
mov ecx, 0xb
mov esi, str.206:_Symbology_out_of_range__using_Code_128
mov dword [ebp - 4], 2
rep movsd dword es:[edi], dword [esi]
mov dword [ebx], 0x14
cmp dword [ebx], 5
jne 0x5158d9
mov dword [ebx], 2
mov eax, dword [ebx]
cmp eax, 0xa
jl 0x5158eb
cmp eax, 0xc
jg 0x5158eb
mov dword [ebx], 0xd
cmp dword [ebx], 0xf
jne 0x5158f6
mov dword [ebx], 0xd
cmp dword [ebx], 0x11
jne 0x515901
mov dword [ebx], 0x22
cmp dword [ebx], 0x13
jne 0x515926
lea edi, [ebx + 0x7528]
mov ecx, 0xb
mov esi, str.207:_Codabar_18_not_supported__using_Codabar
mov dword [ebp - 4], 2
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebx], 0x12
cmp dword [ebx], 0x1a
jne 0x515931
mov dword [ebx], 0x22
mov eax, dword [ebx]
cmp eax, 0x1b
jne 0x515952
lea edi, [ebx + 0x7528]
mov ecx, 6
mov esi, str.208:_UPCD1_not_supported
mov dword [ebp - 4], 8
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
cmp eax, 0x21
jne 0x51595d
mov dword [ebx], 0x10
cmp dword [ebx], 0x24
jne 0x515968
mov dword [ebx], 0x22
cmp dword [ebx], 0x26
jne 0x515973
mov dword [ebx], 0x25
mov eax, dword [ebx]
cmp eax, 0x29
jl 0x515985
cmp eax, 0x2d
jg 0x515985
mov dword [ebx], 0x28
cmp dword [ebx], 0x2e
jne 0x515990
mov dword [ebx], 0x56
cmp dword [ebx], 0x30
jne 0x51599b
mov dword [ebx], 0x4b
cmp dword [ebx], 0x36
jne 0x5159c2
lea edi, [ebx + 0x7528]
mov ecx, 0xd
mov esi, str.210:_General_Parcel_Code_not_supported__using_Code_128
mov dword [ebp - 4], 2
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebx], 0x14
mov eax, dword [ebx]
cmp eax, 0x3b
je 0x5159ce
cmp eax, 0x3d
jne 0x5159d4
mov dword [ebx], 0x14
cmp dword [ebx], 0x3e
jne 0x5159df
mov dword [ebx], 0x19
mov eax, dword [ebx]
cmp eax, 0x40
je 0x5159eb
cmp eax, 0x41
jne 0x5159f1
mov dword [ebx], 0x3f
cmp dword [ebx], 0x4e
jne 0x5159fc
mov dword [ebx], 0x1d
cmp dword [ebx], 0x53
jne 0x515a07
mov dword [ebx], 0x52
cmp dword [ebx], 0x58
jne 0x515a12
mov dword [ebx], 0x10
cmp dword [ebx], 0x5b
jne 0x515a36
lea edi, [ebx + 0x7528]
mov ecx, 0xb
mov esi, str.212:_Symbology_out_of_range__using_Code_128
mov dword [ebp - 4], 2
rep movsd dword es:[edi], dword [esi]
mov dword [ebx], 0x14
mov eax, dword [ebx]
cmp eax, 0x5e
jl 0x515a61
cmp eax, 0x60
jg 0x515a61
lea edi, [ebx + 0x7528]
mov ecx, 0xb
mov esi, str.213:_Symbology_out_of_range__using_Code_128
mov dword [ebp - 4], 2
rep movsd dword es:[edi], dword [esi]
mov dword [ebx], 0x14
cmp dword [ebx], 0x64
jne 0x515a6c
mov dword [ebx], 0x62
cmp dword [ebx], 0x65
jne 0x515a77
mov dword [ebx], 0x63
cmp dword [ebx], 0x67
jne 0x515a82
mov dword [ebx], 0x66
cmp dword [ebx], 0x69
jne 0x515a8d
mov dword [ebx], 0x68
cmp dword [ebx], 0x6b
jne 0x515a98
mov dword [ebx], 0x6a
cmp dword [ebx], 0x6d
jne 0x515aa3
mov dword [ebx], 0x6c
cmp dword [ebx], 0x6f
jne 0x515aae
mov dword [ebx], 0x6e
mov eax, dword [ebx]
cmp eax, 0x71
je 0x515aba
cmp eax, 0x72
jne 0x515ad9
lea edi, [ebx + 0x7528]
mov ecx, 0xb
mov esi, str.214:_Symbology_out_of_range__using_Code_128
mov dword [ebp - 4], 2
rep movsd dword es:[edi], dword [esi]
mov dword [ebx], 0x14
cmp dword [ebx], 0x73
jne 0x515ae4
mov dword [ebx], 0x73
mov eax, dword [ebx]
cmp eax, 0x75
jl 0x515b14
cmp eax, 0x7f
jg 0x515b14
cmp eax, 0x79
je 0x515b14
lea edi, [ebx + 0x7528]
mov ecx, 0xb
mov esi, str.215:_Symbology_out_of_range__using_Code_128
mov dword [ebp - 4], 2
rep movsd dword es:[edi], dword [esi]
mov dword [ebx], 0x14
cmp dword [ebx], 0x90
jl 0x515b40
lea edi, [ebx + 0x7528]
mov ecx, 0xb
mov esi, str.216:_Symbology_out_of_range__using_Code_128
mov dword [ebp - 4], 2
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 4]
mov dword [ebx], 0x14
jmp 0x515b4c
mov esi, dword [ebp - 4]
cmp esi, 4
jg 0x515ca2
mov eax, dword [ebx]
mov dword [ebp - 8], esi
push eax
call fcn.005160c0
add esp, 4
test eax, eax
jne 0x515b82
cmp dword [ebx + 0x144], 3
je 0x515b82
lea edi, [ebx + 0x7528]
mov ecx, 0xb
mov esi, str.217:_Symbology_does_not_support_ECI_switching
mov dword [ebp - 4], 8
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, dword [ebx + 0x144]
cmp eax, 3
jl 0x515b94
cmp eax, 0xf423f
jle 0x515baf
lea edi, [ebx + 0x7528]
mov ecx, 5
mov esi, str.218:_Invalid_ECI_mode
mov dword [ebp - 4], 8
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
cmp dword [ebx + 0x140], 2
jne 0x515c5c
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
xor eax, eax
test ecx, ecx
jle 0x515bd3
cmp byte [eax + edi], 0
je 0x515c05
inc eax
cmp eax, ecx
jl 0x515bc8
mov ecx, dword [ebx]
push ecx
call fcn.00516010
add esp, 4
cmp eax, 1
jne 0x515c47
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
push edx
push eax
push edi
push ebx
call fcn.005173f0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x515c36
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 0x7528]
mov ecx, 0xb
mov esi, str.219:_NULL_characters_not_permitted_in_GS1_mode
mov edi, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
push 6
push eax
call fcn.00515460
add esp, 8
mov eax, 6
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push ecx
call fcn.00516390
add esp, 4
mov dword [ebp + 0x10], eax
jmp 0x515c82
lea eax, [ebx + 0x7528]
mov ecx, 0xc
mov esi, str.220:_Selected_symbology_does_not_support_GS1_mode
jmp 0x515ea4
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
mov byte [eax + ecx], 0
test byte [ebx + 0x140], 8
je 0x515cc5
mov eax, dword [ebp + 8]
lea edx, [ebp + 0x10]
push edx
push eax
push ebx
call fcn.00515550
mov esi, eax
add esp, 0xc
test esi, esi
je 0x515cbe
add ebx, 0x7528
push esi
push ebx
call fcn.00515460
add esp, 8
mov eax, esi
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add dword [ebx + 0x140], 0xfffffff8
mov eax, dword [ebx + 0x140]
xor ecx, ecx
cmp eax, ecx
jl 0x515cd6
cmp eax, 2
jle 0x515cdc
mov dword [ebx + 0x140], ecx
mov eax, dword [ebx + 0x144]
cmp eax, 3
je 0x515cf2
cmp eax, 0x1a
je 0x515cf2
mov dword [ebx + 0x140], ecx
cmp dword [ebx + 0x140], 1
jne 0x515d0b
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0x10]
push ecx
push edx
call fcn.00515510
add esp, 8
fld dword [ebx + 0x759c]
fcomp qword [0x5622a8]
fnstsw ax
test ah, 1
jne 0x515e94
fld dword [ebx + 0x759c]
fcomp qword [0x5622a0]
fnstsw ax
test ah, 0x41
je 0x515e94
mov eax, dword [ebx]
add eax, 0xffffffc6
cmp eax, 0x55
ja case.0x515d4b.59
xor ecx, ecx
mov cl, byte [eax + 0x515ecc]
jmp dword [ecx*4 + 0x515ec4]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push edx
push eax
push ebx
call fcn.00516150
add esp, 0xc
mov esi, eax
cmp esi, 6
jne 0x515e52
mov ecx, dword [ebx]
push ecx
call fcn.005160c0
add esp, 4
test eax, eax
je 0x515e28
cmp dword [ebx + 0x140], 1
jne 0x515e28
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push edx
push eax
call fcn.00516ae0
mov ecx, dword [ebx]
add esp, 8
mov dword [ebx + 0x144], eax
lea esi, [ecx - 0x3a]
cmp esi, 0x54
ja case.0x515db6.59
xor ecx, ecx
mov cl, byte [esi + 0x515f2c]
jmp dword [ecx*4 + 0x515f24]
mov ecx, dword [ebp + 8]
lea edx, [ebp + 0x10]
push edx
push ecx
push edi
push eax
call fcn.005166e0
add esp, 0x10
jmp 0x515de2
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push edx
push eax
push ebx
call fcn.00516150
add esp, 0xc
mov esi, eax
test esi, esi
mov dword [ebp - 4], esi
jne 0x515e28
lea edi, [ebx + 0x7528]
mov ecx, 7
mov esi, str.222:_Encoded_data_includes_ECI
mov eax, dword [ebx + 0x75a4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
test eax, eax
mov dword [ebp - 4], 3
movsb byte es:[edi], byte [esi]
je 0x515e25
mov ecx, dword [ebx + 0x144]
push ecx
push str.Data_ECI__d_n
call sub.MSVCRT.dll_printf
add esp, 8
mov esi, dword [ebp - 4]
lea edx, [ebx + 0x7528]
push esi
push edx
call fcn.00515460
add esp, 8
cmp esi, 5
jg 0x515e46
push ebx
call fcn.00515f90
add esp, 4
mov eax, esi
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x515e28
mov eax, dword [ebx]
cmp eax, 0x14
je 0x515e62
cmp eax, 0x3c
jne 0x515e8f
mov ecx, dword [ebp + 0x10]
xor eax, eax
test ecx, ecx
jle 0x515e8f
mov dl, 0x20
mov ecx, dword [ebp + 8]
mov cl, byte [eax + ecx]
test cl, cl
jne 0x515e80
mov byte [eax + ebx + 0x148], dl
jmp 0x515e87
mov byte [eax + ebx + 0x148], cl
mov ecx, dword [ebp + 0x10]
inc eax
cmp eax, ecx
jl 0x515e6d
mov esi, dword [ebp - 8]
jmp 0x515e28
lea eax, [ebx + 0x7528]
mov ecx, 5
mov esi, str.221:_Invalid_dot_size
mov edi, eax
push 8
rep movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
call fcn.00515460
add esp, 8
mov eax, 8
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret