Function at 0x40509b4
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x471fe9
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 4]
inc dword [eax + 0xe0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe0]
mov edx, eax
dec edx
movzx edx, byte [edx]
cmp edx, 0x2e
jg 0x4050a3f
je 0x4050b04
cmp edx, 0x28
jg 0x4050a27
je 0x4050e24
sub edx, 1
jb 0x4050f68
sub edx, 0x23
je 0x4050abc
jmp 0x40511fd
sub edx, 0x29
je 0x4050f68
dec edx
sub edx, 2
jb 0x4050f79
jmp 0x40511fd
cmp edx, 0x5c
jg 0x4050a61
je 0x4050f8a
sub edx, 0x3f
je 0x4050f79
sub edx, 0x1c
je 0x4050b4a
jmp 0x40511fd
sub edx, 0x5e
je 0x4050a74
sub edx, 0x1e
je 0x4050f68
jmp 0x40511fd
mov eax, dword [ebp - 4]
test byte [eax + 0x110], 0x10
je 0x4050a98
mov eax, dword [ebp - 4]
cmp dword [eax + 0x128], 0
jne 0x4050aaa
mov eax, dword [ebp - 4]
cmp byte [eax + 0x12c], 0
jne 0x4050aaa
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0404f7c4
mov dword [ebp - 8], eax
jmp 0x40513cb
mov dl, 0x22
mov eax, dword [ebp - 4]
call fcn.0404f7c4
mov dword [ebp - 8], eax
jmp 0x40513cb
mov eax, dword [ebp - 4]
test byte [eax + 0x110], 0x10
je 0x4050ae0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x128], 0
jne 0x4050af2
mov eax, dword [ebp - 4]
cmp byte [eax + 0x12c], 0
jne 0x4050af2
mov dl, 2
mov eax, dword [ebp - 4]
call fcn.0404f7c4
mov dword [ebp - 8], eax
jmp 0x40513cb
mov dl, 0x23
mov eax, dword [ebp - 4]
call fcn.0404f7c4
mov dword [ebp - 8], eax
jmp 0x40513cb
mov eax, dword [ebp - 4]
test byte [eax + 0x110], 4
je 0x4050b32
mov dl, 3
mov eax, dword [ebp - 4]
call fcn.0404f7c4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
or eax, 1
or eax, 2
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
jmp 0x40513cb
mov dl, 0x24
mov eax, dword [ebp - 4]
call fcn.0404f7c4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
or dword [eax], 1
jmp 0x40513cb
cmp byte [eax], 0x5e
jne 0x4050b80
mov eax, dword [ebp - 4]
test byte [eax + 0x110], 1
je 0x4050b69
push ebp
mov al, 0x16
call fcn.0405051c
pop ecx
mov dword [ebp - 8], eax
jmp 0x4050b75
push ebp
mov al, 5
call fcn.0405051c
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
inc dword [eax + 0xe0]
jmp 0x4050ba6
mov eax, dword [ebp - 4]
test byte [eax + 0x110], 1
je 0x4050b9a
push ebp
mov al, 0x15
call fcn.0405051c
pop ecx
mov dword [ebp - 8], eax
jmp 0x4050ba6
push ebp
mov al, 4
call fcn.0405051c
pop ecx
mov dword [ebp - 8], eax
mov byte [ebp - 0x3f], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe0]
mov al, byte [eax]
cmp al, 0x5d
jne 0x4050dc7
push ebp
call fcn.04050814
pop ecx
mov eax, dword [ebp - 4]
inc dword [eax + 0xe0]
jmp 0x4050dc7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe0]
mov dl, byte [eax]
cmp dl, 0x2d
jne 0x4050d21
mov ecx, eax
inc ecx
cmp byte [ecx], 0
je 0x4050d21
inc eax
cmp byte [eax], 0x5d
je 0x4050d21
cmp byte [ebp - 0x3f], 0
je 0x4050d21
mov eax, dword [ebp - 4]
inc dword [eax + 0xe0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe0]
mov bl, byte [eax]
cmp bl, 0x5c
jne 0x4050c5c
inc eax
mov al, byte [eax]
add al, 0xc0
cmp al, 0x37
ja 0x4050c32
and eax, 0x7f
bt dword [0x471ffc], eax
jae 0x4050c42
push ebp
mov al, 0x2d
call fcn.04050620
pop ecx
jmp 0x4050dc7
mov eax, dword [ebp - 4]
inc dword [eax + 0xe0]
push ebp
mov eax, dword [ebp - 4]
add eax, 0xe0
call fcn.04050864
pop ecx
mov ebx, eax
mov eax, dword [ebp - 4]
test byte [eax + 0x110], 2
je 0x4050c84
cmp byte [ebp - 0x40], 0xe0
jne 0x4050c84
cmp bl, 0xff
jne 0x4050c84
push ebp
mov eax, 0x47200c
call fcn.04050830
pop ecx
jmp 0x4050d13
mov eax, dword [ebp - 4]
test byte [eax + 0x110], 2
je 0x4050ca9
cmp byte [ebp - 0x40], 0xc0
jne 0x4050ca9
cmp bl, 0xdf
jne 0x4050ca9
push ebp
mov eax, 0x472038
call fcn.04050830
pop ecx
jmp 0x4050d13
mov eax, dword [ebp - 4]
test byte [eax + 0x110], 2
je 0x4050cda
cmp byte [ebp - 0x40], 0xe0
jne 0x4050cda
cmp bl, 0xdf
jne 0x4050cda
push ebp
mov eax, 0x47200c
call fcn.04050830
pop ecx
push ebp
mov eax, 0x472038
call fcn.04050830
pop ecx
jmp 0x4050d13
cmp bl, byte [ebp - 0x40]
jae 0x4050cf0
mov edx, 0x6d
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
jmp 0x40513ce
inc byte [ebp - 0x40]
push ebp
mov eax, ebx
call fcn.04050620
pop ecx
cmp bl, byte [ebp - 0x40]
jbe 0x4050d13
push ebp
mov al, byte [ebp - 0x40]
call fcn.04050620
pop ecx
inc byte [ebp - 0x40]
cmp bl, byte [ebp - 0x40]
ja 0x4050d01
mov eax, dword [ebp - 4]
inc dword [eax + 0xe0]
jmp 0x4050dc7
cmp dl, 0x5c
jne 0x4050db5
mov eax, dword [ebp - 4]
inc dword [eax + 0xe0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe0]
cmp byte [eax], 0
jne 0x4050d52
mov edx, 0x6e
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
jmp 0x40513ce
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe0]
mov al, byte [eax]
sub al, 0x64
je 0x4050d6b
sub al, 0xf
je 0x4050d8b
sub al, 4
je 0x4050d79
jmp 0x4050d9d
push ebp
mov eax, 0x472064
call fcn.04050830
pop ecx
jmp 0x4050dbe
push ebp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x11c]
call fcn.04050830
pop ecx
jmp 0x4050dbe
push ebp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x118]
call fcn.04050830
pop ecx
jmp 0x4050dbe
push ebp
push ebp
mov eax, dword [ebp - 4]
add eax, 0xe0
call fcn.04050864
pop ecx
call fcn.04050814
pop ecx
jmp 0x4050dbe
push ebp
mov eax, edx
call fcn.04050814
pop ecx
mov eax, dword [ebp - 4]
inc dword [eax + 0xe0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe0]
mov al, byte [eax]
test al, al
je 0x4050dde
cmp al, 0x5d
jne 0x4050bd2
push ebp
xor eax, eax
call fcn.04050620
pop ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe0]
cmp byte [eax], 0x5d
je 0x4050e06
mov edx, 0x71
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
jmp 0x40513ce
mov eax, dword [ebp - 4]
inc dword [eax + 0xe0]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
or eax, 1
or eax, 2
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
jmp 0x40513cb
cmp byte [eax], 0x3f
jne 0x4050f38
inc eax
cmp byte [eax], 0x23
jne 0x4050e95
mov eax, dword [ebp - 4]
add dword [eax + 0xe0], 2
jmp 0x4050e48
mov eax, dword [ebp - 4]
inc dword [eax + 0xe0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe0]
mov al, byte [eax]
test al, al
je 0x4050e5b
cmp al, 0x29
jne 0x4050e3f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe0]
cmp byte [eax], 0x29
je 0x4050e7a
mov edx, 0x7d
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
jmp 0x40513ce
mov eax, dword [ebp - 4]
inc dword [eax + 0xe0]
mov dl, 0x13
mov eax, dword [ebp - 4]
call fcn.0404f7c4
mov dword [ebp - 8], eax
jmp 0x40513cb
mov eax, dword [ebp - 4]
inc dword [eax + 0xe0]
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0xe0]
jmp 0x4050eb2
mov eax, dword [ebp - 4]
inc dword [eax + 0xe0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe0]
mov al, byte [eax]
test al, al
je 0x4050ec5
cmp al, 0x29
jne 0x4050ea9
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0xe0]
cmp byte [edi], 0x29
jne 0x4050f0c
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x4c]
mov edx, ebx
call fcn.03fe37b0
mov eax, dword [ebp - 0x4c]
mov ecx, edi
sub ecx, ebx
mov edx, 1
call fcn.03fe3af4
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 4]
lea ecx, [eax + 0x110]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0404f380
test al, al
jne 0x4050f1d
mov edx, 0x7f
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
jmp 0x40513ce
mov eax, dword [ebp - 4]
inc dword [eax + 0xe0]
mov dl, 0x13
mov eax, dword [ebp - 4]
call fcn.0404f7c4
mov dword [ebp - 8], eax
jmp 0x40513cb
lea ecx, [ebp - 0x44]
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0404fb4c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4050f58
xor esi, esi
jmp 0x40513ce
mov eax, dword [ebp - 0x44]
and eax, 5
mov edx, dword [ebp - 0xc]
or dword [edx], eax
jmp 0x40513cb
mov edx, 0x72
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
jmp 0x40513ce
mov edx, 0x73
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
jmp 0x40513ce
cmp byte [eax], 0
jne 0x4050fa0
mov edx, 0x74
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
jmp 0x40513ce
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe0]
movzx eax, byte [eax]
cmp eax, 0x57
jg 0x4050feb
je 0x4051152
cmp eax, 0x42
jg 0x4050fd4
je 0x405102a
add eax, 0xffffffcf
sub eax, 9
jb 0x4051189
sub eax, 7
je 0x405103c
jmp 0x40511d9
sub eax, 0x44
je 0x4051082
sub eax, 0xf
je 0x40510de
jmp 0x40511d9
cmp eax, 0x64
jg 0x4051001
je 0x4051060
sub eax, 0x5a
je 0x405104e
sub eax, 8
je 0x4051018
jmp 0x40511d9
sub eax, 0x73
je 0x40510a4
sub eax, 4
je 0x4051118
jmp 0x40511d9
mov dl, 0x25
mov eax, dword [ebp - 4]
call fcn.0404f7c4
mov dword [ebp - 8], eax
jmp 0x40511ef
mov dl, 0x26
mov eax, dword [ebp - 4]
call fcn.0404f7c4
mov dword [ebp - 8], eax
jmp 0x40511ef
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0404f7c4
mov dword [ebp - 8], eax
jmp 0x40511ef
mov dl, 2
mov eax, dword [ebp - 4]
call fcn.0404f7c4
mov dword [ebp - 8], eax
jmp 0x40511ef
mov dl, 0xc
mov eax, dword [ebp - 4]
call fcn.0404f7c4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
or eax, 1
or eax, 2
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
jmp 0x40511ef
mov dl, 0xd
mov eax, dword [ebp - 4]
call fcn.0404f7c4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
or eax, 1
or eax, 2
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
jmp 0x40511ef
push ebp
mov al, 4
call fcn.0405051c
pop ecx
mov dword [ebp - 8], eax
push ebp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x118]
call fcn.04050830
pop ecx
push ebp
xor eax, eax
call fcn.04050620
pop ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
or eax, 1
or eax, 2
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
jmp 0x40511ef
push ebp
mov al, 5
call fcn.0405051c
pop ecx
mov dword [ebp - 8], eax
push ebp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x118]
call fcn.04050830
pop ecx
push ebp
xor eax, eax
call fcn.04050620
pop ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
or eax, 1
or eax, 2
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
jmp 0x40511ef
push ebp
mov al, 4
call fcn.0405051c
pop ecx
mov dword [ebp - 8], eax
push ebp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x11c]
call fcn.04050830
pop ecx
push ebp
xor eax, eax
call fcn.04050620
pop ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
or eax, 1
or eax, 2
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
jmp 0x40511ef
push ebp
mov al, 5
call fcn.0405051c
pop ecx
mov dword [ebp - 8], eax
push ebp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x11c]
call fcn.04050830
pop ecx
push ebp
xor eax, eax
call fcn.04050620
pop ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
or eax, 1
or eax, 2
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
jmp 0x40511ef
mov eax, dword [ebp - 4]
test byte [eax + 0x110], 1
je 0x40511a4
mov dl, 0x1d
mov eax, dword [ebp - 4]
call fcn.0404f7c4
mov dword [ebp - 8], eax
jmp 0x40511b1
mov dl, 0x1c
mov eax, dword [ebp - 4]
call fcn.0404f7c4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe0]
mov dl, byte [eax]
sub dl, 0x30
mov eax, dword [ebp - 4]
call fcn.0404f800
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
or eax, 1
or eax, 2
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
jmp 0x40511ef
push ebp
push ebp
mov eax, dword [ebp - 4]
add eax, 0xe0
call fcn.04050864
pop ecx
call fcn.04050464
pop ecx
mov eax, dword [ebp - 4]
inc dword [eax + 0xe0]
jmp 0x40513cb
mov eax, dword [ebp - 4]
dec dword [eax + 0xe0]
mov edx, dword [ebp - 4]
test byte [edx + 0x110], 0x20
je 0x40512bb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe0]
mov al, byte [eax]
cmp al, 0x23
je 0x4051237
add al, 0xf7
sub al, 2
jb 0x4051237
sub al, 2
je 0x4051237
sub al, 0x13
jne 0x40512bb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe0]
cmp byte [eax], 0x23
jne 0x4051290
jmp 0x4051250
mov eax, dword [ebp - 4]
inc dword [eax + 0xe0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe0]
mov al, byte [eax]
test al, al
je 0x4051272
cmp al, 0xd
je 0x4051272
cmp al, 0xa
jne 0x4051247
jmp 0x4051272
mov eax, dword [ebp - 4]
inc dword [eax + 0xe0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe0]
mov al, byte [eax]
cmp al, 0xd
je 0x4051269
cmp al, 0xa
je 0x4051269
jmp 0x40512a9
mov eax, dword [ebp - 4]
inc dword [eax + 0xe0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe0]
mov al, byte [eax]
add al, 0xf7
sub al, 2
jb 0x4051287
sub al, 2
je 0x4051287
sub al, 0x13
je 0x4051287
mov dl, 0x13
mov eax, dword [ebp - 4]
call fcn.0404f7c4
mov dword [ebp - 8], eax
jmp 0x40513cb
mov edx, 0x4aa1b4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe0]
call fcn.0404f884
mov ebx, eax
test ebx, ebx
jg 0x4051303
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0xe0]
cmp byte [ebx], 0x7b
je 0x40512f3
mov edx, 0x77
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
jmp 0x40513ce
mov edx, 0x4aa1b4
mov eax, ebx
inc eax
call fcn.0404f884
inc eax
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe0]
add eax, ebx
mov al, byte [eax]
cmp ebx, 1
jle 0x4051326
cmp al, 0x2a
je 0x4051325
cmp al, 0x2b
je 0x4051325
cmp al, 0x3f
je 0x4051325
cmp al, 0x7b
jne 0x4051326
dec ebx
mov eax, dword [ebp - 0xc]
or dword [eax], 1
cmp ebx, 1
jne 0x4051337
mov eax, dword [ebp - 0xc]
or dword [eax], 2
mov eax, dword [ebp - 4]
test byte [eax + 0x110], 1
je 0x4051352
mov dl, 0x14
mov eax, dword [ebp - 4]
call fcn.0404f7c4
mov dword [ebp - 8], eax
jmp 0x40513a3
mov dl, 8
mov eax, dword [ebp - 4]
call fcn.0404f7c4
mov dword [ebp - 8], eax
jmp 0x40513a3
mov eax, dword [ebp - 4]
test byte [eax + 0x110], 0x20
je 0x4051386
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe0]
mov al, byte [eax]
add al, 0xf7
sub al, 2
jb 0x4051399
sub al, 2
je 0x4051399
sub al, 0x13
je 0x4051399
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe0]
mov dl, byte [eax]
mov eax, dword [ebp - 4]
call fcn.0404f800
mov eax, dword [ebp - 4]
inc dword [eax + 0xe0]
dec ebx
test ebx, ebx
jle 0x40513c1
mov eax, dword [ebp - 4]
test byte [eax + 0x110], 0x20
je 0x4051361
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe0]
cmp byte [eax], 0x23
jne 0x4051361
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0404f800
mov esi, dword [ebp - 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x471ff0
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.03fe35dc
ret