Function at 0x515d30
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, dword [eax]
mov dword [ebp - 0xc], ebx
mov edx, dword [ebx + 0x8624]
mov esi, edx
mov edi, dword [ebx + 0x114]
movzx eax, byte [edx]
push eax
call fcn.00515ad0
add esp, 4
test al, al
je 0x515da4
nop
movzx eax, byte [esi + 1]
inc esi
push eax
call fcn.00515ad0
add esp, 4
test al, al
jne 0x515d60
cmp esi, edx
je 0x515da4
mov ecx, esi
jbe 0x515d84
cmp byte [esi - 1], 0x2f
lea eax, [esi - 1]
cmove ecx, eax
push 1
push 0
lea eax, [edi + 4]
sub ecx, edx
push eax
push ecx
push edx
push ebx
call fcn.004f3840
add esp, 0x18
test eax, eax
je 0x515dab
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 4], 0
cmp byte [esi], 0x3b
jne 0x515f84
mov al, byte [esi + 1]
inc esi
mov ecx, esi
test al, al
je 0x515f63
cmp al, 0x3d
je 0x515dda
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x515dc2
pop edi
pop esi
mov eax, 3
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x515f63
push 1
push 0
lea eax, [ebp - 4]
push eax
mov eax, esi
sub eax, ecx
push eax
push ecx
push ebx
call fcn.004f3840
add esp, 0x18
test eax, eax
jne 0x515fe9
movzx eax, byte [esi + 1]
inc esi
push eax
mov ecx, esi
call fcn.00515ad0
add esp, 4
test al, al
je 0x515e28
movzx eax, byte [esi + 1]
inc esi
push eax
call fcn.00515ad0
add esp, 4
test al, al
jne 0x515e16
push 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
mov eax, esi
sub eax, ecx
push eax
push ecx
push ebx
call fcn.004f3840
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x515f6f
push str.UIDVALIDITY
push dword [ebp - 4]
call fcn.0050c720
add esp, 8
test eax, eax
je 0x515e84
cmp dword [edi + 8], ebx
jne 0x515e84
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x515e79
mov eax, dword [ebp + 8]
cmp byte [eax + ecx - 1], 0x2f
jne 0x515e79
mov byte [eax + ecx - 1], bl
mov eax, dword [ebp + 8]
mov dword [edi + 8], eax
jmp 0x515f2a
push 0x707e1c
push dword [ebp - 4]
call fcn.0050c720
add esp, 8
test eax, eax
je 0x515ebc
cmp dword [edi + 0xc], 0
jne 0x515ebc
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x515eb4
mov eax, dword [ebp + 8]
cmp byte [eax + ecx - 1], 0x2f
jne 0x515eb4
mov byte [eax + ecx - 1], 0
mov eax, dword [ebp + 8]
mov dword [edi + 0xc], eax
jmp 0x515f2a
push str.SECTION
push dword [ebp - 4]
call fcn.0050c720
add esp, 8
test eax, eax
je 0x515ef4
cmp dword [edi + 0x10], 0
jne 0x515ef4
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x515eec
mov eax, dword [ebp + 8]
cmp byte [eax + ecx - 1], 0x2f
jne 0x515eec
mov byte [eax + ecx - 1], 0
mov eax, dword [ebp + 8]
mov dword [edi + 0x10], eax
jmp 0x515f2a
push str.PARTIAL
push dword [ebp - 4]
call fcn.0050c720
add esp, 8
test eax, eax
je 0x515f4e
cmp dword [edi + 0x14], 0
jne 0x515f4e
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x515f24
mov eax, dword [ebp + 8]
cmp byte [eax + ecx - 1], 0x2f
jne 0x515f24
mov byte [eax + ecx - 1], 0
mov eax, dword [ebp + 8]
mov dword [edi + 0x14], eax
push dword [ebp - 4]
mov dword [ebp + 8], 0
call dword [0x7ae4cc]
push dword [ebp + 8]
call dword [0x7ae4cc]
mov ebx, dword [ebp - 0xc]
add esp, 8
jmp 0x515dab
push dword [ebp - 4]
call dword [0x7ae4cc]
push dword [ebp + 8]
call dword [0x7ae4cc]
add esp, 8
pop edi
pop esi
mov eax, 3
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
call dword [0x7ae4cc]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi + 4], 0
je 0x515fdd
cmp dword [edi + 0xc], 0
jne 0x515fdd
cmp byte [esi], 0x3f
jne 0x515fdd
movzx eax, byte [esi + 1]
inc esi
push eax
mov ecx, esi
call fcn.00515ad0
add esp, 4
test al, al
je 0x515fc2
lea esp, [esp]
movzx eax, byte [esi + 1]
inc esi
push eax
call fcn.00515ad0
add esp, 4
test al, al
jne 0x515fb0
push 1
push 0
lea eax, [edi + 0x18]
push eax
mov eax, esi
sub eax, ecx
push eax
push ecx
push ebx
call fcn.004f3840
add esp, 0x18
test eax, eax
jne 0x515fe9
xor eax, eax
mov ecx, 3
cmp byte [esi], al
cmovne eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret