Function at 0x1230458
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, dword [0x1001055c]
mov esi, ecx
xor ebx, ebx
mov ecx, 0xffff0000
and dword [esp + 0x14], ecx
and dword [esp + 0x1c], ecx
movsx eax, byte [edi]
inc edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov dword [0x1001055c], edi
cmp eax, 0x41
jg 0x1230631
je 0x1230a89
test eax, eax
je 0x123061c
cmp eax, 0x2f
jle 0x123072e
cmp eax, 0x31
jle 0x123051b
cmp eax, 0x39
jg 0x123072e
movsx eax, byte [edi - 1]
push dword [eax*4 + 0x100011f0]
lea ecx, [esp + 0x14]
call fcn.0123530f
cmp dword [esp + 0x10], 0
je 0x1230505
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x34]
push eax
push 0x10001658
lea ecx, [esp + 0x34]
call fcn.01234c95
mov ecx, eax
call fcn.01235042
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
mov dword [esi], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
and dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ebx
test dl, dl
je 0x12305a3
lea ecx, [esp + 0x28]
call fcn.0123127c
push eax
lea eax, [esp + 0x34]
push eax
push 0x3c
lea ecx, [esp + 0x2c]
call fcn.01234bd1
mov ecx, eax
call fcn.01235042
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
call fcn.01235270
lea ecx, [esp + 0x18]
call fcn.01234ef3
cmp al, 0x3e
jne 0x123056e
push 0x20
lea ecx, [esp + 0x1c]
call fcn.01235114
push 0x3e
lea ecx, [esp + 0x1c]
call fcn.01235114
mov eax, dword [ebp + 8]
test eax, eax
je 0x1230583
mov byte [eax], 1
mov edi, dword [0x1001055c]
cmp byte [edi], bl
jne 0x123059c
mov eax, dword [esp + 0x18]
mov dword [esi], eax
mov eax, dword [esp + 0x1c]
jmp 0x123050f
inc edi
mov dword [0x1001055c], edi
push ebx
xor dl, dl
lea ecx, [esp + 0x34]
call fcn.012301f2
pop ecx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov dword [0x1001055c], edi
test ecx, ecx
je 0x12305f9
cmp byte [edi - 1], 0x31
jne 0x12305f9
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x2c]
push eax
push 0x7e
lea ecx, [esp + 0x3c]
call fcn.01234bd1
mov ecx, eax
call fcn.01235042
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
cmp dword [esp + 0x18], ebx
je 0x1230615
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
call fcn.01235270
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [esi], ecx
jmp 0x123050f
dec edi
mov dword [0x1001055c], edi
push 1
mov ecx, esi
call fcn.01234e92
jmp 0x1230512
cmp eax, 0x42
je 0x1230a86
jle 0x123072e
cmp eax, 0x5a
jle 0x1230a89
cmp eax, 0x5f
jne 0x123072e
movsx eax, byte [edi]
inc edi
mov dword [0x1001055c], edi
cmp eax, 0x4f
jg 0x123073c
cmp eax, 0x44
jge 0x1230a66
cmp eax, 0x39
jg 0x12306e3
je 0x12306b7
test eax, eax
je 0x123061c
cmp eax, 0x2f
jle 0x123072e
cmp eax, 0x36
jle 0x12306a7
cmp eax, 0x38
jg 0x123072e
movsx eax, byte [edi - 1]
push dword [eax*4 + 0x10001280]
mov ecx, esi
call fcn.01234c95
jmp 0x1230512
movsx eax, byte [edi - 1]
push dword [eax*4 + 0x10001280]
jmp 0x12304c6
movsx eax, byte [edi - 1]
lea ecx, [esp + 0x28]
push dword [eax*4 + 0x10001280]
call fcn.01234c95
mov ecx, dword [esp + 0x2c]
or ecx, 0x8000
mov eax, dword [esp + 0x28]
mov dword [esi], eax
mov dword [esi + 4], ecx
jmp 0x1230512
cmp eax, 0x3f
je 0x1230717
cmp eax, 0x40
jle 0x123072e
cmp eax, 0x42
jle 0x1230a66
cmp eax, 0x43
jne 0x123072e
mov edx, 0x10001724
push ecx
lea ecx, [esp + 0x2c]
call fcn.01230abd
pop ecx
mov ecx, dword [esp + 0x2c]
or ecx, 0x1000
jmp 0x12306d5
movsx eax, byte [edi]
inc edi
mov dword [0x1001055c], edi
test eax, eax
je 0x123061c
cmp eax, 0x30
je 0x1230735
push 2
jmp 0x1230625
mov edx, 0x10001bac
jmp 0x1230700
cmp eax, 0x54
jg 0x123093f
cmp eax, 0x53
jge 0x1230a66
sub eax, 0x50
je 0x12308f9
sub eax, 1
je 0x12304cf
sub eax, 1
jne 0x123072e
movsx eax, byte [edi - 1]
lea ecx, [esp + 0x10]
push dword [eax*4 + 0x10001264]
call fcn.0123530f
mov eax, dword [0x1001055c]
mov al, byte [eax]
test al, al
jne 0x1230794
push ecx
push esi
lea ecx, [esp + 0x18]
call fcn.01235064
jmp 0x1230512
movsx eax, al
sub eax, 0x30
js 0x123072e
cmp eax, 5
jae 0x123072e
push dword [eax*4 + 0x1000126c]
lea ecx, [esp + 0x1c]
call fcn.0123530f
mov ecx, dword [0x1001055c]
movsx eax, byte [ecx]
inc ecx
mov dword [0x1001055c], ecx
cmp eax, 0x30
je 0x12308ac
cmp eax, 0x31
je 0x12307f7
add eax, 0xffffffce
cmp eax, 2
ja 0x12307eb
lea ecx, [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push esi
call fcn.01235042
jmp 0x1230512
dec ecx
mov dword [0x1001055c], ecx
jmp 0x1230623
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x18]
push eax
call fcn.01235270
lea eax, [esp + 0x30]
push 0x2c
push eax
lea ecx, [esp + 0x30]
call fcn.01230f5a
mov ecx, eax
call fcn.01234ffe
push eax
lea ecx, [esp + 0x24]
call fcn.01235270
lea eax, [esp + 0x30]
push 0x2c
push eax
lea ecx, [esp + 0x30]
call fcn.01230f5a
mov ecx, eax
call fcn.01234ffe
push eax
lea ecx, [esp + 0x24]
call fcn.01235270
lea eax, [esp + 0x30]
push 0x2c
push eax
lea ecx, [esp + 0x30]
call fcn.01230f5a
mov ecx, eax
call fcn.01234ffe
push eax
lea ecx, [esp + 0x24]
call fcn.01235270
lea eax, [esp + 0x30]
xor dl, dl
push 0x29
push eax
lea ecx, [esp + 0x30]
call fcn.01230fb1
mov ecx, eax
call fcn.01234ffe
push eax
lea ecx, [esp + 0x24]
call fcn.01235270
push 0x27
push esi
lea ecx, [esp + 0x28]
call fcn.01234ffe
jmp 0x1230512
xor edx, edx
lea ecx, [esp + 0x30]
call fcn.01232d3b
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x34]
push 0x20
mov dword [esp + 0x28], eax
call fcn.01235114
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 + 0x10]
push eax
call fcn.01235270
lea ecx, [esp + 0x28]
jmp 0x12307db
movsx eax, byte [edi - 1]
lea ecx, [esp + 0x10]
push dword [eax*4 + 0x10001264]
call fcn.0123530f
push ebx
xor dl, dl
lea ecx, [esp + 0x34]
call fcn.01230458
pop ecx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
test ecx, ecx
je 0x12307d7
test eax, 0x400
je 0x12307d7
jmp 0x123072e
cmp eax, 0x56
jle 0x1230a76
cmp eax, 0x57
jle 0x123072e
cmp eax, 0x59
jle 0x1230a66
cmp eax, 0x5f
jne 0x123072e
movsx eax, byte [edi]
inc edi
mov dword [0x1001055c], edi
cmp eax, 0x41
jl 0x123072e
cmp eax, 0x44
jle 0x1230a56
cmp eax, 0x46
jle 0x12309e7
cmp eax, 0x4a
jle 0x1230a56
cmp eax, 0x4b
jne 0x123072e
movsx eax, byte [edi - 1]
lea ecx, [esp + 0x28]
push dword [eax*4 + 0x100012c8]
call fcn.01234c95
jmp 0x12309c1
cmp al, 0x40
je 0x12309d1
inc ecx
mov dword [0x1001055c], ecx
lea ecx, [esp + 0x28]
push eax
call fcn.01235114
mov ecx, dword [0x1001055c]
mov al, byte [ecx]
test al, al
jne 0x12309ac
cmp al, 0x40
jne 0x12309d8
inc ecx
mov dword [0x1001055c], ecx
mov eax, dword [esp + 0x28]
mov dword [esi], eax
mov eax, dword [esp + 0x2c]
jmp 0x123050f
movsx eax, byte [edi - 1]
lea ecx, [esp + 0x20]
push dword [eax*4 + 0x100012c8]
call fcn.01234c95
mov eax, dword [0x1001055c]
lea ecx, [esp + 0x30]
cmp byte [eax], 0x3f
jne 0x1230a2a
call fcn.0122ff31
push eax
lea ecx, [esp + 0x24]
call fcn.01235270
mov eax, dword [0x1001055c]
cmp byte [eax], 0x40
jne 0x1230a39
inc eax
mov dword [0x1001055c], eax
jmp 0x1230a39
call fcn.012301ae
push eax
lea ecx, [esp + 0x24]
call fcn.01235270
push 0x10001bc4
lea ecx, [esp + 0x24]
call fcn.012351b6
mov eax, dword [esp + 0x20]
mov dword [esi], eax
mov eax, dword [esp + 0x24]
jmp 0x123050f
movsx eax, byte [edi - 1]
push dword [eax*4 + 0x100012c8]
jmp 0x123069b
movsx eax, byte [edi - 1]
push dword [eax*4 + 0x10001264]
jmp 0x123069b
movsx eax, byte [edi - 1]
push dword [eax*4 + 0x10001264]
jmp 0x12304c6
xor ebx, ebx
inc ebx
movsx eax, byte [edi - 1]
lea ecx, [esp + 0x10]
push dword [eax*4 + 0x100011d4]
call fcn.0123530f
test ebx, ebx
je 0x12304cf
cmp dword [esp + 0x10], 0
je 0x1230505
or dword [esp + 0x14], 0x200
jmp 0x1230505