Function at 0x505a20
Capabilities:
Parse credit card information

Disassembly:
push 0xffffffffffffffff
push 0x55a287
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push ebp
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], ebx
call fcn.00503670
xor edi, edi
lea ecx, [esp + 0x3c]
push edi
push edi
push 1
push edi
mov dword [esp + 0x94], edi
call fcn.00503130
lea ebp, [ebx + 0x90]
push eax
mov ecx, ebp
call fcn.00503d30
test eax, eax
jne 0x505c4c
mov eax, dword [ebx + 0x94]
cmp eax, edi
jne 0x505b1e
push edi
push edi
push 1
push 0x7b
lea ecx, [esp + 0x3c]
lea esi, [ebx + 0xa0]
call fcn.00503130
push eax
mov ecx, esi
call fcn.00503d30
test eax, eax
jne 0x505cb1
push edi
push edi
push 1
push 0x3f
lea ecx, [esp + 0x5c]
call fcn.00503130
push eax
mov ecx, esi
call fcn.00503d30
test eax, eax
jne 0x505cb1
push edi
push edi
push 1
push 0x2a
lea ecx, [esp + 0x6c]
call fcn.00503130
push eax
mov ecx, esi
call fcn.00503d30
test eax, eax
jne 0x505cb1
push edi
push edi
push 1
push 0x2b
lea ecx, [esp + 0x7c]
call fcn.00503130
push eax
mov ecx, esi
call fcn.00503d30
test eax, eax
jne 0x505cb1
mov ax, word [ebp]
push 1
lea ecx, [esp + 0x18]
push 1
mov dword [esp + 0x1c], eax
push ecx
jmp 0x505c1e
cmp eax, 1
jne 0x505c2e
mov ax, word [ebp]
cmp ax, 0x29
je 0x505c4c
cmp ax, 0x7c
je 0x505c4c
cmp dword [esp + 0x24], edi
jg 0x505c56
cmp ax, 0x28
je 0x505cdd
cmp ax, 0x5b
je 0x505d10
cmp ax, 0x2e
je 0x505d10
cmp ax, 0x77
je 0x505d10
cmp ax, 0x57
je 0x505d10
cmp ax, 0x73
je 0x505d10
cmp ax, 0x53
je 0x505d10
cmp ax, 0x64
je 0x505d10
cmp ax, 0x44
je 0x505d10
cmp ax, 0x5e
je 0x505cff
cmp ax, 0x24
je 0x505cff
cmp ax, 0x41
je 0x505cff
cmp ax, 0x5a
je 0x505cff
cmp ax, 0x7a
je 0x505cff
cmp ax, 0x62
je 0x505cff
cmp ax, 0x42
je 0x505cff
cmp ax, 0x47
je 0x505cff
cmp ax, 0x5c
je 0x505cee
cmp ax, 0x6b
je 0x505cee
cmp ax, 0x67
je 0x505cee
push 1
lea edx, [esp + 0x18]
push 1
mov dword [esp + 0x1c], eax
push edx
lea ecx, [esp + 0x28]
call fcn.00503690
mov ecx, ebx
call fcn.00506470
push edi
push edi
push 1
push edi
lea ecx, [esp + 0x4c]
call fcn.00503130
push eax
mov ecx, ebp
call fcn.00503d30
test eax, eax
je 0x505a78
cmp dword [esp + 0x24], edi
jle 0x505d2e
push 0x1c
call fcn.00540ab5
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, edi
mov byte [esp + 0x84], 1
je 0x505d21
mov ecx, dword [esp + 0x20]
cmp ecx, edi
jne 0x505c81
mov ecx, 0x7b6c00
mov edx, dword [esp + 0x8c]
mov edx, dword [edx]
mov esi, edx
and edx, 0x10
and esi, 8
push esi
push edx
mov edx, dword [esp + 0x2c]
push edx
push ecx
mov ecx, eax
call fcn.0050b1a0
mov esi, eax
lea ecx, [ebx + 0x14]
push esi
call fcn.0050bd40
jmp 0x505d38
cmp dword [esp + 0x24], edi
jne 0x505c50
mov ax, word [ebp]
push 1
lea ecx, [esp + 0x18]
push 1
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], eax
call fcn.00503690
mov ecx, ebx
call fcn.00506470
jmp 0x505c4c
mov edx, dword [esp + 0x8c]
mov ecx, ebx
push edx
call fcn.00507ee0
jmp 0x505d36
mov eax, dword [esp + 0x8c]
mov ecx, ebx
push eax
call fcn.0050a930
jmp 0x505d36
mov ecx, dword [esp + 0x8c]
push ecx
mov ecx, ebx
call fcn.0050a650
jmp 0x505d36
mov edx, dword [esp + 0x8c]
mov ecx, ebx
push edx
call fcn.00507100
jmp 0x505d36
xor esi, esi
lea ecx, [ebx + 0x14]
push esi
call fcn.0050bd40
jmp 0x505d38
push edi
mov ecx, ebx
call fcn.00504ca0
mov esi, eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x84], 0xffffffff
call fcn.00503740
mov eax, dword [ebx + 0x94]
mov dword [esp + 0x14], esi
cmp eax, edi
je case.0x505d7c.46
xor eax, eax
mov dword [esp + 0x10], edi
mov ax, word [ebp]
add eax, 0xffffffd6
cmp eax, 0x51
ja case.0x505d7c.46
xor ecx, ecx
mov cl, byte [eax + 0x5063a0]
jmp dword [ecx*4 + 0x50638c]
xor esi, esi
lea ecx, [esp + 0x2c]
push esi
push esi
call fcn.0050b4f0
mov dword [esp + 0x2c], 0x7b6bfc
mov dword [esp + 0x38], esi
mov dword [esp + 0x30], esi
lea edi, [ebx + 0x80]
mov edx, ebp
mov eax, edi
lea esi, [ebx + 0xa0]
mov ecx, dword [edx]
mov dword [esp + 0x84], 2
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov eax, esi
mov ecx, dword [eax]
mov dword [ebp], ecx
mov edx, dword [eax + 4]
mov dword [ebp + 4], edx
mov ecx, dword [eax + 8]
mov dword [ebp + 8], ecx
mov ecx, esi
mov edx, dword [eax + 0xc]
mov dword [ebp + 0xc], edx
lea ebp, [ebx + 0xb0]
mov eax, ebp
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov ecx, ebx
call fcn.00503d60
test eax, eax
jne 0x505e20
mov ecx, ebx
call fcn.00503d60
test eax, eax
je 0x505e15
lea ecx, [esp + 0x1c]
xor eax, eax
push ecx
lea ecx, [ebx + 0x90]
mov word [esp + 0x20], ax
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call fcn.00503d30
test eax, eax
jne 0x505f7a
mov ebx, 0x7d
xor eax, eax
lea edx, [esp + 0x3c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x18]
push edx
mov word [esp + 0x40], bx
mov dword [esp + 0x44], 1
lea ecx, [eax + 0x90]
call fcn.00503d30
test eax, eax
jne 0x505f76
mov ecx, dword [esp + 0x18]
add ecx, 0x90
mov ax, word [ecx]
mov dl, al
and edx, 0xff
cmp dx, ax
jne 0x505eaa
mov byte [esp + 0x8c], al
jmp 0x505eb2
mov byte [esp + 0x8c], 0
push 1
lea ecx, [esp + 0x90]
push 1
push ecx
lea ecx, [esp + 0x38]
call fcn.0050b450
mov edx, dword [esp + 0x18]
mov ecx, edi
lea eax, [edx + 0x90]
mov edx, dword [edx + 0x90]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x18]
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov ecx, esi
lea eax, [edx + 0x90]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov edx, ebp
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [edx]
mov eax, esi
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 0xc], edx
call fcn.00503d60
test eax, eax
jne 0x505f43
mov ecx, dword [esp + 0x18]
call fcn.00503d60
test eax, eax
je 0x505f36
mov ecx, dword [esp + 0x18]
xor eax, eax
mov word [esp + 0x1c], ax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1c]
push eax
add ecx, 0x90
mov dword [esp + 0x24], 1
call fcn.00503d30
test eax, eax
je 0x505e54
mov ebx, dword [esp + 0x18]
lea eax, [ebx + 0x90]
mov edx, eax
mov ecx, dword [edx]
mov dword [edi], ecx
mov ecx, dword [edx + 4]
mov dword [edi + 4], ecx
mov ecx, dword [edx + 8]
mov dword [edi + 8], ecx
mov ecx, esi
mov edx, dword [edx + 0xc]
mov dword [edi + 0xc], edx
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov edx, dword [ebp]
mov ecx, dword [ecx + 0xc]
mov dword [esi], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov ecx, ebx
mov dword [esi + 0xc], edx
call fcn.00503d60
test eax, eax
jne 0x505fdd
mov ecx, ebx
call fcn.00503d60
test eax, eax
je 0x505fd2
mov esi, dword [esp + 0x30]
test esi, esi
jne 0x505fea
mov esi, 0x7b6bf8
mov al, byte [esi]
xor edi, edi
test al, al
je 0x50600c
movsx eax, byte [edi + esi]
push eax
call fcn.0052e720
add esp, 4
test eax, eax
je 0x50600c
mov al, byte [edi + esi + 1]
inc edi
test al, al
jne 0x505ff2
mov al, byte [edi + esi]
cmp al, 0x30
jl 0x506073
cmp al, 0x39
jg 0x506073
lea ecx, [edi + 6]
xor ebp, ebp
cmp edi, ecx
mov dword [esp + 0x10], ebp
jae 0x506043
mov al, byte [edi + esi]
cmp al, 0x30
jl 0x50603f
cmp al, 0x39
jg 0x50603f
movsx eax, al
lea edx, [ebp + ebp*4]
inc edi
cmp edi, ecx
lea ebp, [eax + edx*2 - 0x30]
jb 0x506024
mov dword [esp + 0x10], ebp
mov al, byte [edi + esi]
test al, al
je 0x506063
movsx ecx, al
push ecx
call fcn.0052e720
add esp, 4
test eax, eax
je 0x506063
mov al, byte [edi + esi + 1]
inc edi
test al, al
jne 0x50604a
mov al, byte [esi + edi]
add esi, edi
cmp al, 0x2c
je 0x5060bc
mov eax, 1
jmp 0x506079
mov ebp, dword [esp + 0x10]
xor eax, eax
cmp eax, 2
mov edi, ebp
jne 0x50608f
mov edi, accept
mov eax, dword [esp + 0x10]
cmp edi, eax
jae 0x50608f
mov edi, eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x84], 0xffffffff
test eax, eax
mov dword [esp + 0x2c], 0x7b6bfc
je 0x506240
push eax
call fcn.0052f33e
add esp, 4
jmp 0x506240
mov al, byte [esi + 1]
inc esi
xor ebp, ebp
test al, al
je 0x5060e0
movsx edx, byte [esi + ebp]
push edx
call fcn.0052e720
add esp, 4
test eax, eax
je 0x5060e0
mov al, byte [esi + ebp + 1]
inc ebp
test al, al
jne 0x5060c6
mov al, byte [esi + ebp]
cmp al, 0x30
jl 0x506080
cmp al, 0x39
jg 0x506080
lea edx, [ebp + 6]
xor edi, edi
cmp ebp, edx
mov eax, ebp
jae 0x506112
mov cl, byte [eax + esi]
cmp cl, 0x30
jl 0x506112
cmp cl, 0x39
jg 0x506112
movsx ecx, cl
lea edi, [edi + edi*4]
inc eax
cmp eax, edx
lea edi, [ecx + edi*2 - 0x30]
jb 0x5060f6
add esi, eax
cmp byte [esi], 0
je 0x506085
movsx edx, byte [esi]
push edx
call fcn.0052e720
add esp, 4
test eax, eax
je 0x506085
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x50611d
jmp 0x506085
mov ecx, ebp
lea eax, [ebx + 0x80]
mov dword [esp + 0x10], edi
mov edi, 1
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
lea eax, [ebx + 0xa0]
mov edx, eax
mov ecx, dword [edx]
mov dword [ebp], ecx
mov ecx, dword [edx + 4]
mov dword [ebp + 4], ecx
mov ecx, dword [edx + 8]
mov dword [ebp + 8], ecx
lea ecx, [ebx + 0xb0]
mov edx, dword [edx + 0xc]
mov dword [ebp + 0xc], edx
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, ebx
call fcn.00503d60
test eax, eax
jne 0x5061c8
mov ecx, ebx
call fcn.00503d60
test eax, eax
je 0x5061ab
jmp 0x5061c8
mov dword [esp + 0x10], edi
mov ecx, ebx
mov edi, accept
call fcn.00506470
push 0
push 0
push 1
push 0x3f
lea ecx, [esp + 0x7c]
call fcn.00503130
lea esi, [ebx + 0x90]
push eax
mov ecx, esi
call fcn.00503d30
test eax, eax
je 0x5062da
mov ecx, ebx
call fcn.00506470
push 0x10
call fcn.00540ab5
add esp, 4
mov dword [esp + 0x8c], eax
test eax, eax
mov dword [esp + 0x84], 4
je 0x50636a
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push edi
push ecx
push edx
mov ecx, eax
call fcn.00506890
mov esi, eax
jmp 0x50636c
mov dword [esp + 0x10], 1
jmp 0x5061bc
test edi, edi
jne 0x506251
push edi
mov ecx, ebx
call fcn.00504ca0
jmp 0x506377
mov ebp, dword [esp + 0x10]
cmp ebp, edi
jne 0x5061c8
push 0
push 0
push 1
push 0x3f
lea ecx, [esp + 0x7c]
call fcn.00503130
lea esi, [ebx + 0x90]
push eax
mov ecx, esi
call fcn.00503d30
test eax, eax
jne 0x50629b
push eax
push eax
push 1
push 0x2b
lea ecx, [esp + 0x7c]
call fcn.00503130
push eax
mov ecx, esi
call fcn.00503d30
test eax, eax
je 0x5062a2
mov ecx, ebx
call fcn.00506470
push 0xc
call fcn.00540ab5
add esp, 4
mov dword [esp + 0x8c], eax
test eax, eax
mov dword [esp + 0x84], 3
je 0x50636a
mov edx, dword [esp + 0x14]
push ebp
push edx
mov ecx, eax
call fcn.00506790
mov esi, eax
jmp 0x50636c
push 0
push 0
push 1
push 0x2b
lea ecx, [esp + 0x7c]
call fcn.00503130
push eax
mov ecx, esi
call fcn.00503d30
test eax, eax
je 0x506334
mov ecx, ebx
call fcn.00506470
push 0x10
call fcn.00540ab5
add esp, 4
mov dword [esp + 0x8c], eax
test eax, eax
mov dword [esp + 0x84], 5
je 0x50636a
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push edi
push ecx
push edx
mov ecx, eax
call fcn.00506f10
mov esi, eax
jmp 0x50636c
push 0x10
call fcn.00540ab5
add esp, 4
mov dword [esp + 0x8c], eax
test eax, eax
mov dword [esp + 0x84], 6
je 0x50636a
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push edi
push ecx
push edx
mov ecx, eax
call fcn.00506b50
mov esi, eax
jmp 0x50636c
xor esi, esi
push esi
lea ecx, [ebx + 0x14]
call fcn.0050bd40
mov eax, esi
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x78
ret 4