Function at 0x10051710
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10156946
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
mov eax, dword [0x10198e28]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x1e0], eax
mov dword [ebp - 0x1d8], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xc4], eax
test edi, edi
jne 0x1005176f
xor edx, edx
mov dword [ebp - 0xc4], edx
jmp 0x10051847
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10051774
sub ecx, edx
lea eax, [ebp - 0xc0]
sar ecx, 1
push 0x80
push eax
lea eax, [ebp - 0xc4]
lea ebx, [ecx + 1]
lea esi, [ebx*4]
mov dword [ebp - 0x1d8], ebx
push esi
push eax
call fcn.10004520
add esp, 0x10
push 0
push 0
push esi
push dword [ebp - 0xc4]
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push edi
push 0
push 0xfde9
call esi
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x10051839
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10051839
mov ebx, dword [ebp - 0x1d8]
push 0
push 0
push 0
push 0
push ebx
push edi
push 0
push 0xfde9
call esi
mov esi, eax
lea eax, [ebp - 0xc0]
push 0x80
push eax
lea eax, [ebp - 0xc4]
push esi
push eax
call fcn.10004520
add esp, 0x10
push 0
push 0
push esi
push dword [ebp - 0xc4]
push ebx
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
test ebx, ebx
jne 0x10051caa
mov edx, dword [ebp - 0xc4]
mov ecx, edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10051865
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.1001dfc0
mov eax, dword [ebp - 0xc4]
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 2
cmp eax, ecx
je 0x10051895
push eax
call fcn.1012f829
add esp, 4
push 0
push 0x1015b98a
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.1001dfc0
mov ebx, dword [ebp - 0x2c]
xor esi, esi
mov edi, dword [ebp - 0x40]
mov byte [ebp - 4], 3
cmp dword [ebp - 0x30], esi
jbe 0x10051bd2
nop dword [eax + eax]
cmp ebx, 0x10
lea eax, [ebp - 0x40]
cmovae eax, edi
movzx eax, byte [eax + esi]
push eax
call fcn.10139f83
add esp, 4
test eax, eax
jne 0x10051a01
cmp ebx, 0x10
lea eax, [ebp - 0x40]
cmovae eax, edi
cmp byte [eax + esi], 0x26
je 0x10051a01
cmp ebx, 0x10
lea eax, [ebp - 0x40]
cmovae eax, edi
cmp byte [eax + esi], 0x25
je 0x10051a01
cmp ebx, 0x10
lea eax, [ebp - 0x40]
cmovae eax, edi
cmp byte [eax + esi], 0x3d
je 0x10051a01
cmp ebx, 0x10
lea eax, [ebp - 0x40]
cmovae eax, edi
cmp byte [eax + esi], 0x3f
je 0x10051a01
cmp ebx, 0x10
lea eax, [ebp - 0x40]
cmovae eax, edi
cmp byte [eax + esi], 0x2d
je 0x10051a01
cmp ebx, 0x10
lea eax, [ebp - 0x40]
cmovae eax, edi
cmp byte [eax + esi], 0x5f
je 0x10051a01
cmp ebx, 0x10
lea eax, [ebp - 0x40]
cmovae eax, edi
cmp byte [eax + esi], 0x2e
je 0x10051a01
cmp ebx, 0x10
lea eax, [ebp - 0x40]
cmovae eax, edi
cmp byte [eax + esi], 0x7e
je 0x10051a01
cmp ebx, 0x10
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x28]
cmovae eax, edi
cmp byte [eax + esi], 0x20
jne 0x100519a5
push 1
push 0x101623a4
call fcn.10007620
jmp 0x10051bc8
push 0x25
call fcn.1004f8d0
cmp ebx, 0x10
lea eax, [ebp - 0x40]
cmovae eax, edi
mov cl, byte [eax + esi]
mov al, 9
shr cl, 4
cmp al, cl
sbb al, al
add cl, 0x30
and al, 7
add al, cl
lea ecx, [ebp - 0x28]
movzx eax, al
push eax
call fcn.1004f8d0
cmp ebx, 0x10
lea eax, [ebp - 0x40]
cmovae eax, edi
mov cl, byte [eax + esi]
mov al, 9
and cl, 0xf
cmp al, cl
sbb al, al
add cl, 0x30
and al, 7
add al, cl
lea ecx, [ebp - 0x28]
movzx eax, al
push eax
call fcn.1004f8d0
jmp 0x10051bc8
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 0x14]
cmp ebx, 0x10
mov dword [ebp - 0x1d8], edx
cmovae eax, edi
mov dword [ebp - 0x1dc], ecx
mov al, byte [eax + esi]
mov byte [ebp - 0x1c9], al
cmp edx, ecx
jae 0x10051a4c
lea eax, [edx + 1]
cmp ecx, 0x10
mov cl, byte [ebp - 0x1c9]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov byte [eax + edx], cl
mov byte [eax + edx + 1], 0
jmp 0x10051bc8
mov eax, SysReAllocString
sub eax, edx
cmp eax, 1
jb 0x10051cce
lea ecx, [edx + 1]
or ecx, 0xf
cmp ecx, 0x7fffffff
jbe 0x10051a71
mov ecx, SysReAllocString
jmp 0x10051aaa
mov eax, dword [ebp - 0x1dc]
shr eax, 1
mov dword [ebp - 0x1d0], eax
mov eax, SysReAllocString
sub eax, dword [ebp - 0x1d0]
cmp dword [ebp - 0x1dc], eax
jbe 0x10051a99
mov ecx, SysReAllocString
jmp 0x10051aaa
mov eax, dword [ebp - 0x1dc]
add eax, dword [ebp - 0x1d0]
cmp ecx, eax
cmovb ecx, eax
lea eax, [ecx + 1]
mov dword [ebp - 0x1d0], ecx
mov dword [ebp - 0x1d4], eax
cmp eax, 0x1000
jb 0x10051afb
add eax, 0x23
mov ecx, 0xffffffff
cmp eax, dword [ebp - 0x1d4]
cmovbe eax, ecx
push eax
call fcn.1011bb0d
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x10051cc9
mov edx, dword [ebp - 0x1d8]
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
mov ecx, dword [ebp - 0x1d0]
jmp 0x10051b18
test eax, eax
je 0x10051b16
push eax
call fcn.1011bb0d
mov ecx, dword [ebp - 0x1d0]
add esp, 4
mov edx, dword [ebp - 0x1d8]
jmp 0x10051b18
xor eax, eax
cmp dword [ebp - 0x1dc], 0x10
lea ebx, [edx + 1]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x1d4], eax
mov dword [ebp - 0x14], ecx
push edx
jb 0x10051b9e
mov ecx, dword [ebp - 0x28]
push ecx
push eax
mov dword [ebp - 0x1d0], ecx
call fcn.101288f0
mov eax, dword [ebp - 0x1d4]
add esp, 0xc
mov ecx, dword [ebp - 0x1d8]
mov dl, byte [ebp - 0x1c9]
mov byte [ecx + eax], dl
mov byte [ecx + eax + 1], 0
mov ecx, dword [ebp - 0x1dc]
mov eax, dword [ebp - 0x1d0]
inc ecx
cmp ecx, 0x1000
jb 0x10051b8c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10051cc9
mov eax, edx
push ecx
push eax
call fcn.1011b768
mov eax, dword [ebp - 0x1d4]
add esp, 8
jmp 0x10051bc5
lea ecx, [ebp - 0x28]
push ecx
push eax
call fcn.101288f0
mov eax, dword [ebp - 0x1d4]
add esp, 0xc
mov ecx, dword [ebp - 0x1d8]
mov dl, byte [ebp - 0x1c9]
mov byte [ecx + eax], dl
mov byte [ecx + eax + 1], 0
mov dword [ebp - 0x28], eax
inc esi
cmp esi, dword [ebp - 0x30]
jb 0x100518d0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0xfde9
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x1c8]
push eax
call fcn.10007cb0
push dword [eax]
mov esi, dword [ebp - 0x1e0]
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.10004be0
mov eax, dword [ebp - 0x1c8]
lea ecx, [ebp - 0x1c4]
cmp eax, ecx
je 0x10051c1a
push eax
call fcn.1012f829
add esp, 4
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x10051c4e
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10051c44
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10051cc9
push edx
push ecx
call fcn.1011b768
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp ebx, 0x10
jb 0x10051c8a
inc ebx
mov eax, edi
cmp ebx, 0x1000
jb 0x10051c80
mov edi, dword [edi - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10051cd3
push ebx
push edi
call fcn.1011b768
add esp, 8
mov eax, esi
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.1011bafc
mov esp, ebp
pop ebp
ret 8
push 0x80
lea eax, [ebp - 0xc0]
push eax
push dword [ebp - 0xc4]
call fcn.10004620
add esp, 0xc
call fcn.10005560
call fcn.1012ca09
call fcn.10007540
call fcn.1012ca09
int3