Function at 0x538040
Capabilities:
Parse credit card information

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
push ebx
push ebp
push esi
mov eax, dword [eax]
push edi
mov dword [esp + 0x18], eax
mov edi, dword [eax + 0x47f8]
mov ebp, dword [eax + 0x124]
mov esi, edi
mov cl, byte [edi]
push ecx
call fcn.00538320
add esp, 4
test eax, eax
je 0x5380ba
mov dl, byte [esi + 1]
inc esi
push edx
call fcn.00538320
add esp, 4
test eax, eax
jne 0x53806e
cmp esi, edi
je 0x5380ba
mov eax, esi
jbe 0x538094
mov dl, byte [esi - 1]
lea ecx, [esi - 1]
cmp dl, 0x2f
jne 0x538094
mov eax, ecx
xor ebx, ebx
lea ecx, [ebp + 4]
push 1
push ebx
sub eax, edi
push ecx
push eax
mov eax, dword [esp + 0x28]
push edi
push eax
call fcn.0054bb10
add esp, 0x18
cmp eax, ebx
je 0x5380bf
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor ebx, ebx
mov dword [ebp + 4], ebx
cmp byte [esi], 0x3b
jne 0x538272
mov al, byte [esi + 1]
inc esi
cmp al, bl
mov ecx, esi
je 0x5380de
cmp al, 0x3d
je 0x5380de
mov al, byte [esi + 1]
inc esi
cmp al, bl
jne 0x5380d2
cmp byte [esi], bl
je 0x538305
mov eax, esi
push 1
lea edx, [esp + 0x14]
push ebx
sub eax, ecx
push edx
push eax
push ecx
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0054bb10
add esp, 0x18
cmp eax, ebx
jne 0x5382cc
mov dl, byte [esi + 1]
inc esi
push edx
mov edi, esi
call fcn.00538320
add esp, 4
test eax, eax
je 0x53812d
mov al, byte [esi + 1]
inc esi
push eax
call fcn.00538320
add esp, 4
test eax, eax
jne 0x53811c
lea ecx, [esp + 0x14]
mov eax, esi
push 1
lea edx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x20]
sub eax, edi
push edx
push eax
push edi
push ecx
call fcn.0054bb10
mov edi, eax
add esp, 0x18
cmp edi, ebx
jne 0x5382d4
mov edx, dword [esp + 0x10]
push str.UIDVALIDITY
push edx
call fcn.00546160
add esp, 8
test eax, eax
je 0x538194
cmp dword [ebp + 8], ebx
jne 0x538194
mov eax, dword [esp + 0x14]
cmp eax, ebx
jbe 0x538188
mov ecx, dword [esp + 0x20]
cmp byte [ecx + eax - 1], 0x2f
jne 0x538188
mov byte [ecx + eax - 1], bl
mov eax, dword [esp + 0x20]
mov dword [ebp + 8], eax
jmp 0x53824b
mov ecx, dword [esp + 0x10]
push 0x5b208c
push ecx
call fcn.00546160
add esp, 8
test eax, eax
je 0x5381cf
cmp dword [ebp + 0xc], ebx
jne 0x5381cf
mov eax, dword [esp + 0x14]
cmp eax, ebx
jbe 0x5381c6
mov ecx, dword [esp + 0x20]
cmp byte [ecx + eax - 1], 0x2f
jne 0x5381c6
mov byte [ecx + eax - 1], bl
mov edx, dword [esp + 0x20]
mov dword [ebp + 0xc], edx
jmp 0x53824b
mov eax, dword [esp + 0x10]
push str.SECTION
push eax
call fcn.00546160
add esp, 8
test eax, eax
je 0x53820a
cmp dword [ebp + 0x10], ebx
jne 0x53820a
mov eax, dword [esp + 0x14]
cmp eax, ebx
jbe 0x538201
mov ecx, dword [esp + 0x20]
cmp byte [ecx + eax - 1], 0x2f
jne 0x538201
mov byte [ecx + eax - 1], bl
mov ecx, dword [esp + 0x20]
mov dword [ebp + 0x10], ecx
jmp 0x53824b
mov edx, dword [esp + 0x10]
push str.PARTIAL
push edx
call fcn.00546160
add esp, 8
test eax, eax
je 0x5382ec
cmp dword [ebp + 0x14], ebx
jne 0x5382ec
mov eax, dword [esp + 0x14]
cmp eax, ebx
jbe 0x538244
mov ecx, dword [esp + 0x20]
cmp byte [ecx + eax - 1], 0x2f
jne 0x538244
mov byte [ecx + eax - 1], bl
mov eax, dword [esp + 0x20]
mov dword [ebp + 0x14], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], ebx
push ecx
call dword [0x5af228]
mov edx, dword [esp + 0x24]
push edx
call dword [0x5af228]
mov al, byte [esi]
add esp, 8
cmp al, 0x3b
je 0x5380c8
cmp dword [ebp + 4], ebx
je 0x5382c3
cmp dword [ebp + 0xc], ebx
jne 0x5382c3
cmp byte [esi], 0x3f
jne 0x5382c3
mov al, byte [esi + 1]
inc esi
push eax
mov edi, esi
call fcn.00538320
add esp, 4
test eax, eax
je 0x5382a5
mov cl, byte [esi + 1]
inc esi
push ecx
call fcn.00538320
add esp, 4
test eax, eax
jne 0x538294
mov eax, dword [esp + 0x18]
mov edx, esi
push 1
add ebp, 0x18
push ebx
sub edx, edi
push ebp
push edx
push edi
push eax
call fcn.0054bb10
add esp, 0x18
cmp eax, ebx
jne 0x5382cc
mov al, byte [esi]
neg al
sbb eax, eax
and eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x10]
push eax
call dword [0x5af228]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0x10]
push ecx
call dword [0x5af228]
mov edx, dword [esp + 0x24]
push edx
call dword [0x5af228]
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0xc
ret