Function at 0x40d030
Capabilities:
Parse credit card information

Disassembly:
push esi
mov esi, ecx
xor cl, cl
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x40d3d9
push ebx
push edi
cmp eax, 0x7c
je 0x40d3d7
cmp eax, 0x29
jne 0x40d06d
cmp dword [esi + 0x10], 0
jne 0x40d3d7
test dword [esi + 0x50], 0x10000000
je 0x40d3e6
jmp 0x40d36a
cmp eax, 0x2e
jne 0x40d081
push 5
lea ecx, [esi + 0x24]
call fcn.0040fa30
jmp 0x40d377
cmp eax, 0x5c
jne 0x40d159
mov eax, dword [esi]
mov edx, dword [esi + 8]
cmp eax, edx
je 0x40d0ce
cmp word [eax], 0x5c
jne 0x40d0c9
lea ecx, [eax + 2]
cmp ecx, edx
je 0x40d0c9
mov edx, dword [esi + 0x50]
test dl, 8
jne 0x40d0b5
movzx edi, word [ecx]
cmp edi, 0x28
je 0x40d0c7
cmp edi, 0x29
je 0x40d0c7
test dl, 0x10
jne 0x40d0c9
movzx edx, word [ecx]
cmp edx, 0x7b
je 0x40d0c7
cmp edx, 0x7d
jne 0x40d0c9
mov eax, ecx
add eax, 2
mov dword [esi], eax
mov ecx, esi
call fcn.00410090
test byte [esi + 0x50], 0x80
je 0x40d14d
movzx eax, word [esi + 0x48]
cmp eax, 0x62
jne 0x40d135
push 4
lea ecx, [esi + 0x24]
call fcn.0040fa30
mov edx, dword [esi + 8]
mov eax, dword [esi]
cmp eax, edx
je 0x40d314
cmp word [eax], 0x5c
jne 0x40d30f
lea ecx, [eax + 2]
cmp ecx, edx
je 0x40d30f
mov ebx, dword [esi + 0x50]
test bl, 8
jne 0x40d12d
movzx edx, word [ecx]
cmp edx, 0x28
je 0x40d30d
cmp edx, 0x29
je 0x40d30d
test bl, 0x10
jmp 0x40d2fe
cmp eax, 0x42
jne 0x40d14d
push 4
lea ecx, [esi + 0x24]
call fcn.0040fa30
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x40d0ee
mov ecx, esi
call fcn.0040d410
jmp 0x40d3c2
cmp eax, 0x5b
jne 0x40d247
mov eax, dword [esi]
mov edx, dword [esi + 8]
cmp eax, edx
je 0x40d1a6
cmp word [eax], 0x5c
jne 0x40d1a1
lea ecx, [eax + 2]
cmp ecx, edx
je 0x40d1a1
mov edx, dword [esi + 0x50]
test dl, 8
jne 0x40d18d
movzx edi, word [ecx]
cmp edi, 0x28
je 0x40d19f
cmp edi, 0x29
je 0x40d19f
test dl, 0x10
jne 0x40d1a1
movzx edx, word [ecx]
cmp edx, 0x7b
je 0x40d19f
cmp edx, 0x7d
jne 0x40d1a1
mov eax, ecx
add eax, 2
mov dword [esi], eax
mov ecx, esi
call fcn.00410090
lea ecx, [esi + 0x24]
call fcn.0040c600
mov eax, dword [esi + 0x4c]
cmp eax, 0x5e
jne 0x40d212
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
mov eax, dword [esi]
mov edx, dword [esi + 8]
cmp eax, edx
je 0x40d208
cmp word [eax], 0x5c
jne 0x40d203
lea ecx, [eax + 2]
cmp ecx, edx
je 0x40d203
mov edx, dword [esi + 0x50]
test dl, 8
jne 0x40d1ef
movzx edi, word [ecx]
cmp edi, 0x28
je 0x40d201
cmp edi, 0x29
je 0x40d201
test dl, 0x10
jne 0x40d203
movzx edx, word [ecx]
cmp edx, 0x7b
je 0x40d201
cmp edx, 0x7d
jne 0x40d203
mov eax, ecx
add eax, 2
mov dword [esi], eax
mov ecx, esi
call fcn.00410090
mov eax, dword [esi + 0x4c]
test dword [esi + 0x50], 0x20000000
je 0x40d230
cmp eax, 0x5d
jne 0x40d230
push eax
lea ecx, [esi + 0x24]
call fcn.0040c580
mov ecx, esi
call fcn.0040faa0
mov ecx, esi
call fcn.0040dd50
push 4
push 0x5d
mov ecx, esi
call fcn.0040f130
jmp 0x40d3c2
cmp eax, 0x28
jne 0x40d2b8
mov eax, dword [esi]
mov edx, dword [esi + 8]
cmp eax, edx
je 0x40d290
cmp word [eax], 0x5c
jne 0x40d28b
lea ecx, [eax + 2]
cmp ecx, edx
je 0x40d28b
mov edx, dword [esi + 0x50]
test dl, 8
jne 0x40d277
movzx edi, word [ecx]
cmp edi, 0x28
je 0x40d289
cmp edi, 0x29
je 0x40d289
test dl, 0x10
jne 0x40d28b
movzx edx, word [ecx]
cmp edx, 0x7b
je 0x40d289
cmp edx, 0x7d
jne 0x40d28b
mov eax, ecx
add eax, 2
mov dword [esi], eax
mov ecx, esi
call fcn.00410090
mov ecx, esi
call fcn.00410270
push 5
push 0x29
mov ecx, esi
mov bl, al
call fcn.0040f130
test bl, bl
je 0x40d3c9
jmp 0x40d3c2
cmp eax, 0x5e
jne 0x40d2c1
push 2
jmp 0x40d2c8
cmp eax, 0x24
jne 0x40d320
push 3
lea ecx, [esi + 0x24]
call fcn.0040fa30
mov edx, dword [esi + 8]
mov eax, dword [esi]
cmp eax, edx
je 0x40d314
cmp word [eax], 0x5c
jne 0x40d30f
lea ecx, [eax + 2]
cmp ecx, edx
je 0x40d30f
mov edx, dword [esi + 0x50]
test dl, 8
jne 0x40d2fb
movzx edi, word [ecx]
cmp edi, 0x28
je 0x40d30d
cmp edi, 0x29
je 0x40d30d
test dl, 0x10
jne 0x40d30f
movzx edx, word [ecx]
cmp edx, 0x7b
je 0x40d30d
cmp edx, 0x7d
jne 0x40d30f
mov eax, ecx
add eax, 2
mov dword [esi], eax
mov ecx, esi
call fcn.00410090
jmp 0x40d3c9
cmp eax, 0x2a
je 0x40d3dd
cmp eax, 0x2b
je 0x40d3dd
cmp eax, 0x3f
je 0x40d3dd
cmp eax, 0x7b
je 0x40d3dd
cmp eax, 0x7d
jne 0x40d358
test dword [esi + 0x50], 0x10000000
je 0x40d3ef
jmp 0x40d36a
cmp eax, 0x5d
jne 0x40d36a
test dword [esi + 0x50], 0x10000000
je 0x40d3f8
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.0040c3d0
mov edx, dword [esi + 8]
mov eax, dword [esi]
cmp eax, edx
je 0x40d3bb
cmp word [eax], 0x5c
jne 0x40d3b6
lea ecx, [eax + 2]
cmp ecx, edx
je 0x40d3b6
mov edx, dword [esi + 0x50]
test dl, 8
jne 0x40d3a2
movzx edi, word [ecx]
cmp edi, 0x28
je 0x40d3b4
cmp edi, 0x29
je 0x40d3b4
test dl, 0x10
jne 0x40d3b6
movzx edx, word [ecx]
cmp edx, 0x7b
je 0x40d3b4
cmp edx, 0x7d
jne 0x40d3b6
mov eax, ecx
add eax, 2
mov dword [esi], eax
mov ecx, esi
call fcn.00410090
mov ecx, esi
call fcn.0040fb80
mov eax, dword [esi + 0x4c]
mov cl, 1
cmp eax, 0xffffffff
jne 0x40d043
pop edi
pop ebx
mov al, cl
pop esi
ret
push 0xa
mov ecx, esi
call fcn.0040f120
push 5
mov ecx, esi
call fcn.0040f120
push 6
mov ecx, esi
call fcn.0040f120
push 4
mov ecx, esi
call fcn.0040f120
int3