Function at 0x409540
Capabilities:
Parse credit card information

Disassembly:
push ebp
push ebx
push esi
push edi
add esp, 0xffffffd4
mov edi, dword [esp + 0x40]
push edi
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov byte [eax + ecx - 1], 0
call fcn.004092b0
mov al, byte [esp + 0x54]
test al, al
je 0x409740
mov ecx, dword [esp + 0x4c]
cmp byte [ecx], 0x2f
je 0x409592
mov dword [esp + 0x28], 0
mov edx, 0x49742400
mov dword [esp + 0x20], edx
mov ebx, 0x49742400
mov dword [esp + 0x1c], ebx
jmp 0x409a0b
cmp byte [ecx + 3], 0x2f
je 0x4095b7
mov dword [esp + 0x28], 0
mov edx, 0x49742400
mov dword [esp + 0x20], edx
mov ebx, 0x49742400
mov dword [esp + 0x1c], ebx
jmp 0x409a0b
cmp byte [ecx + 7], 0x5e
je 0x4095dc
mov dword [esp + 0x28], 0
mov edx, 0x49742400
mov dword [esp + 0x20], edx
mov ebx, 0x49742400
mov dword [esp + 0x1c], ebx
jmp 0x409a0b
cmp byte [ecx + 0xb], 0x2f
je 0x409601
mov dword [esp + 0x28], 0
mov edx, 0x49742400
mov dword [esp + 0x20], edx
mov ebx, 0x49742400
mov dword [esp + 0x1c], ebx
jmp 0x409a0b
mov dl, byte [ecx + 1]
cmp dl, 0x54
jne 0x40960f
cmp byte [ecx + 2], 0x53
je 0x409631
cmp dl, 0x48
jne 0x40961a
cmp byte [ecx + 2], 0x43
je 0x40962b
cmp dl, 0x54
jne 0x409635
cmp byte [ecx + 2], 0x44
jne 0x409635
mov byte [edi + 0x2c], 4
jmp 0x409635
mov byte [edi + 0x2c], 3
jmp 0x409635
mov byte [edi + 0x2c], 2
mov dl, byte [edi + 0x2c]
test dl, dl
je 0x409721
push 3
push 3
lea edx, [edi + 0x30]
push edx
lea ebx, [esp + 0x48]
push ebx
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 3
call fcn.00409320
push 3
push 3
push edi
lea eax, [esp + 0x48]
push eax
call fcn.00409320
push 4
push 4
lea ecx, [edi + 0xc]
push ecx
lea eax, [esp + 0x48]
push eax
call fcn.00409320
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x4c]
cmp byte [ecx + eax], 0x3e
jne 0x4096a3
push 3
push 3
lea edx, [edi + 0x34]
push edx
lea ebx, [esp + 0x48]
push ebx
call fcn.00409320
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x24]
cmp byte [eax + ecx], 0x26
jne 0x4096c3
push 3
push 3
lea edx, [edi + 0x38]
push edx
lea ebx, [esp + 0x48]
push ebx
call fcn.00409320
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x24]
cmp byte [eax + ecx], 0x25
je 0x4096f0
mov edx, dword [esp + 0x24]
mov dword [esp + 0x28], edx
mov ebx, 0x49742400
mov dword [esp + 0x20], ebx
mov edx, 0x49742400
mov dword [esp + 0x1c], edx
jmp 0x409a0b
push 3
push 3
add edi, 0x3c
push edi
lea edx, [esp + 0x48]
push edx
call fcn.00409320
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], eax
mov ecx, 0x49742400
mov dword [esp + 0x20], ecx
mov eax, 0x49742400
mov dword [esp + 0x1c], eax
jmp 0x409a0b
mov dword [esp + 0x28], 1
mov edx, 0x49742400
mov dword [esp + 0x20], edx
mov ebx, 0x49742400
mov dword [esp + 0x1c], ebx
jmp 0x409a0b
lea ecx, [edi + 0xc]
mov dword [esp + 8], ecx
lea esi, [edi + 8]
lea ebp, [edi + 0x1c]
lea ebx, [edi + 0x14]
lea edx, [edi + 0x10]
mov dword [esp + 0x10], edx
lea eax, [edi + 4]
mov dword [esp + 0x14], eax
lea ecx, [edi + 0x18]
mov dword [esp + 0xc], ecx
lea edx, [edi + 0x20]
mov dword [esp + 0x28], 0
mov eax, 0x49742400
mov dword [esp + 0x20], eax
mov ecx, 0x49742400
mov dword [esp + 0x1c], ecx
jmp 0x4099e4
push 0x3089705f
push edx
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0xc], edx
call fcn.00409470
mov edx, dword [esp]
jmp 0x4099d5
cmp al, 0x4c
jb 0x409a07
and eax, 0xff
jmp dword [eax*4 + 0x409960]
cmp al, 0x74
ja 0x409a07
and eax, 0xff
jmp dword [eax*4 + 0x40991c]
cmp dword [esp + 0x28], 0
ja 0x409a07
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x28]
mov al, byte [eax + ecx]
cmp al, 0x62
jae 0x4097fd
cmp al, 0x50
jbe 0x4097a8
cmp al, 0x58
je 0x409788
mov byte [edi + 0x2c], 1
fld dword [esp + 0x1c]
fadd dword [0x469d34]
fstp dword [esp + 4]
fld1
fcomp dword [esp + 4]
fnstsw ax
and ah, 0x41
je 0x409a46
fld dword [esp + 4]
fcomp dword [0x469a6c]
fnstsw ax
and ah, 1
je 0x409a46
push dword [esp + 4]
call fcn.00402540
mov ecx, dword [esp + 0x44]
mov dword [ecx], eax
fldz
fcomp dword [esp + 0x20]
fnstsw ax
and ah, 0x41
je 0x409a73
fld dword [esp + 0x20]
fcomp dword [0x469c14]
fnstsw ax
and ah, 1
je 0x409a73
push dword [esp + 0x20]
call fcn.00402540
mov ecx, dword [esp + 0x48]
mov dword [ecx], eax
push dword [esp + 0x28]
push 0
push dword [esp + 0x58]
push dword [esp + 0x58]
call fcn.0041f4a0
sub esp, 0xffffffd4
pop edi
pop esi
pop ebx
pop ebp
ret 0x18