Function at 0x49c030
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [ebp + 8]
mov ebx, dword [eax]
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x3c], edx
cmp edi, ecx
jne 0x49c059
xor esi, esi
jmp 0x49c070
mov eax, edi
lea esi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x49c060
sub eax, esi
and eax, 0x3fffffff
mov esi, eax
test bl, 0x40
jne 0x49c081
cmp dword [0x512994], ecx
je 0x49c552
cmp esi, 5
jl 0x49c552
cmp dword [edi], 0x656c6966
jne 0x49c552
cmp byte [edi + 4], 0x3a
jne 0x49c552
or dword [esp + 0x14], 0x40
lea eax, [esi + 2]
cdq
mov ebx, eax
xor eax, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x34], edx
cmp esi, ecx
jle 0x49c0d5
cmp byte [eax + edi], 0x26
jne 0x49c0c6
mov ecx, 1
jmp 0x49c0c8
xor ecx, ecx
xor edx, edx
add ebx, ecx
adc dword [esp + 0x34], edx
inc eax
cmp eax, esi
jl 0x49c0b9
call fcn.00499b60
test eax, eax
jne 0x49c0f6
mov eax, dword [esp + 0x34]
push eax
push ebx
call fcn.00426430
mov edx, eax
add esp, 8
mov dword [esp + 0x10], edx
test edx, edx
jne 0x49c102
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov bl, 0x2f
mov eax, 5
cmp byte [edi + 5], bl
jne 0x49c183
cmp byte [edi + 6], bl
jne 0x49c183
mov cl, byte [edi + 7]
lea edx, [edi + 7]
mov eax, 7
mov dword [esp + 0x30], edx
test cl, cl
je 0x49c17f
cmp cl, bl
je 0x49c133
mov cl, byte [eax + edi + 1]
inc eax
test cl, cl
jne 0x49c126
cmp eax, 7
je 0x49c17f
cmp eax, 0x10
jne 0x49c163
lea ecx, [eax - 7]
mov esi, 0x50acd4
mov ebx, dword [esi]
cmp ebx, dword [edx]
jne 0x49c15f
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x49c145
mov cl, byte [edx]
cmp cl, byte [esi]
je 0x49c17f
mov edx, dword [esp + 0x30]
push edx
add eax, 0xfffffff9
push eax
push 0x50ace0
call fcn.004285f0
mov edx, dword [ebp + 0x14]
add esp, 0xc
mov dword [edx], eax
jmp 0x49c5be
mov edx, dword [esp + 0x10]
mov cl, byte [eax + edi]
xor esi, esi
mov dword [esp + 0x1c], esi
test cl, cl
je 0x49c311
cmp cl, 0x23
je 0x49c2ff
inc eax
cmp cl, 0x25
jne 0x49c26f
mov dl, byte [eax + edi]
movzx ebx, dl
test byte [ebx + 0x5018f8], 8
je 0x49c26b
movzx ebx, byte [eax + edi + 1]
test byte [ebx + 0x5018f8], 8
je 0x49c26b
movsx esi, byte [eax + edi + 1]
movsx ecx, dl
mov edx, ecx
sar edx, 6
and dl, 1
mov bl, dl
add bl, bl
add bl, bl
add bl, bl
sub bl, dl
sub cl, bl
mov edx, esi
sar edx, 6
and dl, 1
mov bl, dl
add bl, bl
add bl, bl
add bl, bl
sub bl, dl
mov dword [esp + 0x30], esi
movzx edx, byte [esp + 0x30]
sub dl, bl
and ecx, 0xf
shl ecx, 4
add eax, 2
and edx, 0xf
add ecx, edx
jne 0x49c262
mov cl, byte [eax + edi]
test cl, cl
je 0x49c2ec
mov edx, dword [esp + 0x1c]
cmp cl, 0x23
je 0x49c2ec
test edx, edx
jne 0x49c236
cmp cl, 0x3f
jmp 0x49c24e
cmp edx, 1
jne 0x49c246
cmp cl, 0x3d
je 0x49c2ec
jmp 0x49c24b
cmp edx, 2
jne 0x49c254
cmp cl, 0x26
je 0x49c2ec
mov cl, byte [eax + edi + 1]
inc eax
test cl, cl
jne 0x49c224
jmp 0x49c2ec
mov edx, dword [esp + 0x10]
jmp 0x49c2e0
mov edx, dword [esp + 0x10]
cmp esi, 1
jne 0x49c2c1
cmp cl, 0x26
je 0x49c27e
cmp cl, 0x3d
jne 0x49c2e0
mov esi, dword [esp + 0x18]
cmp byte [edx + esi - 1], 0
jne 0x49c2a7
mov cl, byte [eax + edi]
test cl, cl
je 0x49c2ec
cmp cl, 0x23
je 0x49c2ec
cmp byte [eax + edi - 1], 0x26
je 0x49c2ec
mov cl, byte [eax + edi + 1]
inc eax
test cl, cl
jne 0x49c290
jmp 0x49c2ec
cmp cl, 0x26
jne 0x49c2b7
mov byte [edx + esi], 0
inc esi
mov dword [esp + 0x18], esi
jmp 0x49c2de
mov dword [esp + 0x1c], 2
jmp 0x49c2de
test esi, esi
jne 0x49c2cc
cmp cl, 0x3f
je 0x49c2d6
jmp 0x49c2e0
cmp esi, 2
jne 0x49c2e0
cmp cl, 0x26
jne 0x49c2e0
mov dword [esp + 0x1c], 1
xor cl, cl
mov esi, dword [esp + 0x18]
mov byte [edx + esi], cl
inc esi
mov dword [esp + 0x18], esi
mov cl, byte [eax + edi]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
test cl, cl
jne 0x49c194
cmp esi, 1
jne 0x49c311
mov eax, dword [esp + 0x18]
mov byte [edx + eax], 0
inc eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov word [edx + eax], 0
mov eax, edx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49c320
mov ecx, dword [esp + 0x10]
sub eax, edx
and eax, 0x3fffffff
cmp byte [eax + ecx + 1], 0
lea ecx, [eax + ecx + 1]
je 0x49c591
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x49c346
sub eax, esi
and eax, 0x3fffffff
mov esi, eax
lea eax, [esi + ecx + 1]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x49c366
xor ebx, ebx
jmp 0x49c384
mov eax, dword [esp + 0x1c]
lea edi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x49c370
sub eax, edi
and eax, 0x3fffffff
mov ebx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], ebx
cmp esi, 3
jne 0x49c3b3
cmp byte [ecx], 0x76
jne 0x49c51b
cmp byte [ecx + 1], 0x66
jne 0x49c51b
cmp byte [ecx + 2], 0x73
jne 0x49c51b
mov dword [esp + 0x3c], eax
jmp 0x49c51b
cmp esi, 5
jne 0x49c3e6
cmp dword [ecx], 0x68636163
jne 0x49c51b
cmp byte [ecx + 4], 0x65
jne 0x49c51b
mov eax, 0x60000
mov dword [esp + 0x30], eax
mov edi, 0x513944
mov dword [esp + 0x28], 0x50acfc
jmp 0x49c419
cmp esi, 4
jne 0x49c51b
cmp dword [ecx], 0x65646f6d
jne 0x49c51b
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], 0x87
mov edi, 0x51395c
and eax, 0x87
mov dword [esp + 0x28], 0x50ad04
mov ecx, dword [edi]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], 0
test ecx, ecx
je 0x49c4cd
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x49c434
sub eax, esi
and eax, 0x3fffffff
cmp ebx, eax
jne 0x49c4b8
mov edx, dword [esp + 0x1c]
mov esi, ebx
cmp ebx, 4
jb 0x49c469
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x49c471
sub esi, 4
add ecx, 4
add edx, 4
cmp esi, 4
jae 0x49c455
test esi, esi
je 0x49c4ed
movzx eax, byte [edx]
movzx ebx, byte [ecx]
sub eax, ebx
jne 0x49c4ac
cmp esi, 1
jbe 0x49c4e9
movzx eax, byte [edx + 1]
movzx ebx, byte [ecx + 1]
sub eax, ebx
jne 0x49c4ac
cmp esi, 2
jbe 0x49c4e9
movzx eax, byte [edx + 2]
movzx ebx, byte [ecx + 2]
sub eax, ebx
jne 0x49c4ac
cmp esi, 3
jbe 0x49c4e9
movzx eax, byte [edx + 3]
movzx ecx, byte [ecx + 3]
sub eax, ecx
mov ebx, dword [esp + 0x18]
sar eax, 0x1f
or eax, 1
je 0x49c4ed
mov eax, dword [esp + 0x24]
mov ecx, dword [edi + eax*8 + 8]
inc eax
mov dword [esp + 0x24], eax
test ecx, ecx
jne 0x49c42f
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
push edx
push eax
push 0x50ad0c
call fcn.004285f0
add esp, 0xc
jmp 0x49c5b9
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov eax, dword [edi + edx*8 + 4]
test eax, eax
je 0x49c4cd
mov ecx, eax
and ecx, 0xffffff7f
cmp ecx, dword [esp + 0x2c]
jg 0x49c52c
mov ecx, dword [esp + 0x30]
not ecx
and ecx, dword [esp + 0x14]
or ecx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], ecx
cmp byte [ebx + eax + 1], 0
lea ecx, [ebx + eax + 1]
jne 0x49c341
jmp 0x49c591
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
push edx
push eax
push 0x50ad20
call fcn.004285f0
mov ecx, dword [ebp + 0x14]
add esp, 0xc
mov dword [ecx], eax
mov dword [esp + 0x20], 3
jmp 0x49c5c6
call fcn.00499b60
test eax, eax
jne 0x49c0f6
lea eax, [esi + 2]
cdq
push edx
push eax
call fcn.00426430
mov ebx, eax
add esp, 8
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x49c0f6
push esi
push edi
push ebx
call fcn.004d5420
add esp, 0xc
and dword [esp + 0x14], 0xffffffbf
mov word [ebx + esi], 0
mov esi, dword [esp + 0x3c]
push esi
call fcn.00425940
mov edx, dword [ebp + 0xc]
add esp, 4
mov dword [edx], eax
test eax, eax
jne 0x49c62e
push esi
push 0x50ad38
call fcn.004285f0
add esp, 8
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov dword [esp + 0x20], 1
cmp dword [0x512988], 0
je 0x49c618
mov eax, dword [0x515ee8]
test eax, eax
je 0x49c5e2
push eax
call dword [0x5129dc]
add esp, 4
mov esi, dword [esp + 0x10]
push esi
call dword [0x5129b8]
sub dword [0x515d30], eax
dec dword [0x515d54]
add esp, 4
push esi
call dword [0x5129b0]
mov eax, dword [0x515ee8]
add esp, 4
test eax, eax
je 0x49c626
push eax
call dword [0x5129e4]
jmp 0x49c623
mov edx, dword [esp + 0x10]
push edx
call dword [0x5129b0]
add esp, 4
mov dword [esp + 0x10], 0
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0x10]
mov dword [eax], ecx
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov dword [edx], eax
mov eax, dword [esp + 0x18]
pop ebx
mov esp, ebp
pop ebp
ret