Function at 0x1000578a
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x10011560]
push ebx
push esi
xor ebx, ebx
push edi
mov edi, ecx
mov dword [esp + 0x18], ebx
mov cl, byte [eax]
lea esi, [eax + 1]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x10], ebx
mov dword [0x10011560], esi
cmp cl, 0x41
jg 0x100059af
je 0x10005e35
test cl, cl
je 0x10005999
cmp cl, 0x2f
jle case.default.0x10005d13
cmp cl, 0x31
jle 0x10005853
cmp cl, 0x39
jg case.default.0x10005d13
movsx eax, byte [esi - 1]
push dword [eax*4 + 0x10001258]
lea ecx, [esp + 0x1c]
call fcn.1000acec
cmp dword [esp + 0x18], ebx
je 0x1000583d
push 0x100016fc
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.1000a697
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
call fcn.1000a9df
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
mov dword [edi], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + 4], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
test dl, dl
je 0x10005907
lea ecx, [esp + 0x20]
call fcn.10006768
mov esi, eax
mov byte [esp + 0xc], 0x3c
push 1
lea eax, [esp + 0x10]
mov dword [esp + 0x2c], ebx
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x34], ebx
call fcn.1000ad17
push esi
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x30]
call fcn.1000a9df
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
call fcn.1000ac0d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100058d2
mov eax, dword [eax]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100120b4]
mov ecx, dword [esp + 0x10]
call esi
cmp al, 0x3e
jne 0x100058d2
push 0x20
lea ecx, [esp + 0x14]
call fcn.1000aab1
push 0x3e
lea ecx, [esp + 0x14]
call fcn.1000aab1
mov eax, dword [ebp + 8]
test eax, eax
je 0x100058e7
mov byte [eax], 1
mov esi, dword [0x10011560]
cmp byte [esi], bl
jne 0x10005900
mov eax, dword [esp + 0x10]
mov dword [edi], eax
mov eax, dword [esp + 0x14]
jmp 0x10005847
inc esi
mov dword [0x10011560], esi
push ebx
xor dl, dl
lea ecx, [esp + 0x34]
call fcn.10005564
pop ecx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov dword [0x10011560], esi
test ecx, ecx
je 0x1000597c
cmp byte [esi - 1], 0x31
jne 0x1000597c
push 1
lea eax, [esp + 0x10]
mov byte [esp + 0x10], 0x7e
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.1000ad17
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x18]
push eax
call fcn.1000ac0d
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x10], ebx
je 0x1000583d
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
call fcn.1000ac0d
jmp 0x1000583d
lea eax, [esi - 1]
mov dword [0x10011560], eax
push 1
mov ecx, edi
call fcn.1000a86d
jmp 0x1000584a
cmp cl, 0x42
je 0x10005e2d
jle case.default.0x10005d13
cmp cl, 0x5a
jle 0x10005e35
cmp cl, 0x5f
jne case.default.0x10005d13
movsx eax, byte [esi]
lea ecx, [esi + 1]
mov dword [0x10011560], ecx
cmp eax, 0x4f
jg 0x10005ad7
cmp eax, 0x44
jge 0x10005df8
cmp eax, 0x39
jg 0x10005a6f
je 0x10005a38
test eax, eax
je 0x10005a30
cmp eax, 0x2f
jle case.default.0x10005d13
cmp eax, 0x36
jle 0x10005a20
cmp eax, 0x38
jg case.default.0x10005d13
movsx eax, byte [ecx - 1]
mov eax, dword [eax*4 + 0x100012e8]
jmp 0x10005e03
movsx eax, byte [ecx - 1]
push dword [eax*4 + 0x100012e8]
jmp 0x100057f7
lea eax, [ecx - 1]
jmp 0x1000599c
movsx eax, byte [ecx - 1]
mov dword [esp + 0x28], ebx
mov ecx, dword [eax*4 + 0x100012e8]
mov eax, ebx
mov dword [esp + 0x2c], eax
test ecx, ecx
je 0x10005a63
push ecx
lea ecx, [esp + 0x2c]
call fcn.1000a697
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
or eax, 0x8000
mov dword [edi], ebx
jmp 0x10005847
cmp eax, 0x3f
je 0x10005ab7
cmp eax, 0x40
jle case.default.0x10005d13
cmp eax, 0x42
jle 0x10005df8
cmp eax, 0x43
jne case.default.0x10005d13
mov edx, 0x100017c8
push ecx
lea ecx, [esp + 0x2c]
call fcn.10005e82
mov eax, dword [esp + 0x2c]
pop ecx
mov ecx, dword [esp + 0x2c]
or ecx, 0x1000
mov dword [edi], eax
mov dword [edi + 4], ecx
jmp 0x1000584a
mov al, byte [ecx]
inc ecx
mov dword [0x10011560], ecx
test al, al
je 0x10005a30
cmp al, 0x30
jne case.default.0x10005d13
mov edx, 0x10001c5c
jmp 0x10005a94
cmp eax, 0x54
jg 0x10005cde
cmp eax, 0x53
jge 0x10005df8
sub eax, 0x50
je 0x10005c96
sub eax, 1
je 0x10005800
sub eax, 1
jne case.default.0x10005d13
movsx eax, byte [ecx - 1]
lea ecx, [esp + 0x18]
push dword [eax*4 + 0x100012cc]
call fcn.1000acec
mov eax, dword [0x10011560]
mov al, byte [eax]
test al, al
jne 0x10005b33
push ecx
push edi
lea ecx, [esp + 0x20]
call fcn.1000aa01
jmp 0x1000584a
movsx eax, al
sub eax, 0x30
js case.default.0x10005d13
cmp eax, 5
jae case.default.0x10005d13
push dword [eax*4 + 0x100012d0]
lea ecx, [esp + 0x24]
call fcn.1000acec
mov eax, dword [0x10011560]
mov cl, byte [eax]
inc eax
mov dword [0x10011560], eax
cmp cl, 0x30
je 0x10005c49
cmp cl, 0x31
je 0x10005b94
jle 0x10005b8e
cmp cl, 0x34
jg 0x10005b8e
lea ecx, [esp + 0x18]
lea eax, [esp + 0x20]
push eax
push edi
call fcn.1000a9df
jmp 0x1000584a
dec eax
jmp 0x1000599c
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x20]
push eax
call fcn.1000ac0d
lea eax, [esp + 0x30]
push 0x2c
push eax
lea ecx, [esp + 0x30]
call fcn.100063fe
mov ecx, eax
call fcn.1000a99b
push eax
lea ecx, [esp + 0x14]
call fcn.1000ac0d
lea eax, [esp + 0x30]
push 0x2c
push eax
lea ecx, [esp + 0x30]
call fcn.100063fe
mov ecx, eax
call fcn.1000a99b
push eax
lea ecx, [esp + 0x14]
call fcn.1000ac0d
lea eax, [esp + 0x30]
push 0x2c
push eax
lea ecx, [esp + 0x30]
call fcn.100063fe
mov ecx, eax
call fcn.1000a99b
push eax
lea ecx, [esp + 0x14]
call fcn.1000ac0d
lea eax, [esp + 0x30]
xor dl, dl
push 0x29
push eax
lea ecx, [esp + 0x30]
call fcn.1000646b
mov ecx, eax
call fcn.1000a99b
push eax
lea ecx, [esp + 0x14]
call fcn.1000ac0d
push 0x27
push edi
lea ecx, [esp + 0x18]
call fcn.1000a99b
jmp 0x1000584a
xor edx, edx
lea ecx, [esp + 0x30]
call fcn.100084fb
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x34]
push 0x20
mov dword [esp + 0x30], eax
call fcn.1000aab1
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
call fcn.1000ac0d
lea ecx, [esp + 0x10]
jmp 0x10005b7e
movsx eax, byte [ecx - 1]
lea ecx, [esp + 0x18]
push dword [eax*4 + 0x100012cc]
call fcn.1000acec
push ebx
xor dl, dl
lea ecx, [esp + 0x34]
call fcn.1000578a
pop ecx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
test ecx, ecx
je 0x10005b7a
test eax, 0x400
je 0x10005b7a
push 2
jmp 0x100059a3
cmp eax, 0x56
jle 0x10005e1d
cmp eax, 0x57
jle case.default.0x10005d13
cmp eax, 0x59
jle 0x10005df8
cmp eax, 0x5f
jne case.default.0x10005d13
movsx eax, byte [ecx]
inc ecx
sub eax, 0x41
mov dword [0x10011560], ecx
cmp eax, 0xb
ja case.default.0x10005d13
movzx eax, byte [eax + 0x10005e76]
jmp dword [eax*4 + 0x10005e6a]
movsx eax, byte [ecx - 1]
mov eax, dword [eax*4 + 0x10001330]
jmp 0x10005e03
movsx eax, byte [ecx - 1]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov eax, dword [eax*4 + 0x10001330]
test eax, eax
je 0x10005d51
push eax
lea ecx, [esp + 0x24]
call fcn.1000a697
mov ecx, dword [0x10011560]
cmp byte [ecx], 0x3f
lea ecx, [esp + 0x30]
jne 0x10005d7b
call fcn.100052b0
push eax
lea ecx, [esp + 0x24]
call fcn.1000ac0d
mov eax, dword [0x10011560]
cmp byte [eax], 0x40
jne 0x10005d8a
inc eax
mov dword [0x10011560], eax
jmp 0x10005d8a
call fcn.10005520
push eax
lea ecx, [esp + 0x24]
call fcn.1000ac0d
push 0x10001c74
lea ecx, [esp + 0x24]
call fcn.1000ab53
mov eax, dword [esp + 0x20]
mov dword [edi], eax
mov eax, dword [esp + 0x24]
jmp 0x10005847
movsx eax, byte [ecx - 1]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov eax, dword [eax*4 + 0x10001330]
test eax, eax
je 0x10005de5
push eax
lea ecx, [esp + 0x24]
call fcn.1000a697
jmp 0x10005ddf
cmp al, 0x40
je 0x10005def
inc ecx
mov dword [0x10011560], ecx
lea ecx, [esp + 0x20]
push eax
call fcn.1000aab1
mov ecx, dword [0x10011560]
mov al, byte [ecx]
test al, al
jne 0x10005dca
cmp al, 0x40
jne 0x10005d98
inc ecx
mov dword [0x10011560], ecx
jmp 0x10005d98
movsx eax, byte [ecx - 1]
mov eax, dword [eax*4 + 0x100012cc]
mov dword [edi], ebx
mov dword [edi + 4], ebx
test eax, eax
je 0x1000584a
push eax
mov ecx, edi
call fcn.1000a697
jmp 0x1000584a
movsx eax, byte [ecx - 1]
push dword [eax*4 + 0x100012cc]
jmp 0x100057f7
mov dword [esp + 0x10], 1
movsx eax, byte [esi - 1]
lea ecx, [esp + 0x18]
push dword [eax*4 + 0x1000123c]
call fcn.1000acec
cmp dword [esp + 0x10], ebx
je 0x10005800
cmp dword [esp + 0x18], ebx
je 0x1000583d
or dword [esp + 0x1c], 0x200
jmp 0x1000583d