Function at 0x513691
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov eax, dword [eax]
xor ebx, ebx
mov edi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x10], eax
call fcn.00519db1
test byte [ebp - 0x10], 0x40
mov esi, eax
pop ecx
mov dword [ebp - 0x24], esi
jne 0x5136c5
cmp dword [0x5f87e4], ebx
je 0x513a89
cmp esi, 5
jl 0x513a89
push 5
push str.file:
push edi
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x513a89
or dword [ebp - 0x10], 0x40
lea eax, [esi + 2]
mov dword [ebp - 8], ebx
mov ecx, ebx
cdq
test esi, esi
jle 0x51372b
cmp byte [ecx + edi], 0x26
jne 0x513709
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], ebx
jmp 0x51371d
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x1c], edi
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x20], edi
add eax, dword [ebp - 0x20]
mov edi, dword [ebp + 0xc]
adc edx, dword [ebp - 0x1c]
inc ecx
cmp ecx, esi
jl 0x5136f7
push edx
push eax
call fcn.004e74e8
mov edx, eax
mov dword [ebp - 0xc], edx
pop ecx
pop ecx
test edx, edx
je 0x513a9c
cmp byte [edi + 5], 0x2f
push 5
pop esi
jne 0x5137b1
cmp byte [edi + 6], 0x2f
jne 0x5137b1
lea ecx, [edi + 7]
mov al, byte [ecx]
mov dword [ebp - 0x24], ecx
push 7
pop esi
test al, al
je 0x5137b1
cmp al, 0x2f
je 0x51376b
inc esi
mov al, byte [esi + edi]
test al, al
jne 0x51375f
cmp esi, 7
je 0x5137b1
cmp esi, 0x10
jne 0x51378c
push 9
push ecx
push str.localhost
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
je 0x5137ae
mov ecx, dword [ebp - 0x24]
push ecx
lea eax, [esi - 7]
push eax
push str.invalid_uri_authority:__.s
call fcn.004e73d9
mov ecx, dword [ebp + 0x1c]
xor ebx, ebx
mov esi, dword [ebp - 0xc]
add esp, 0xc
inc ebx
mov dword [ecx], eax
jmp 0x513ae7
mov edx, dword [ebp - 0xc]
mov cl, byte [esi + edi]
mov eax, ebx
mov dword [ebp - 0x14], eax
test cl, cl
je 0x51387d
cmp cl, 0x23
je 0x513871
inc esi
cmp cl, 0x25
jne 0x51389b
movzx eax, byte [esi + edi]
test byte [eax + 0x57b938], 8
je 0x513898
movzx eax, byte [esi + edi + 1]
test byte [eax + 0x57b938], 8
je 0x513898
mov dl, byte [esi + edi]
mov cl, byte [esi + edi + 1]
mov al, dl
sar al, 6
add esi, 2
and al, 1
movzx eax, al
imul eax, eax, 7
sub dl, al
mov al, cl
sar al, 6
and edx, 0xf
and al, 1
shl edx, 4
movzx eax, al
imul eax, eax, 7
sub cl, al
and ecx, 0xf
add ecx, edx
jne 0x513893
mov al, byte [esi + edi]
test al, al
je 0x513860
mov ecx, dword [ebp - 0x14]
cmp al, 0x23
je 0x513860
test ecx, ecx
jne 0x513842
cmp al, 0x3f
je 0x513860
cmp ecx, 1
jne 0x51384f
cmp al, 0x3d
je 0x513860
cmp al, 0x26
je 0x513860
cmp ecx, 2
jne 0x513858
cmp al, 0x26
je 0x513860
inc esi
mov al, byte [esi + edi]
test al, al
jne 0x513836
mov edx, dword [ebp - 0xc]
mov cl, byte [esi + edi]
mov eax, dword [ebp - 0x14]
test cl, cl
jne 0x5137c1
cmp eax, 1
mov eax, dword [ebp - 8]
jne 0x51387d
mov byte [edx + eax], bl
inc eax
push edx
mov word [edx + eax], bx
call fcn.00519db1
mov esi, dword [ebp - 0xc]
pop ecx
lea edi, [esi + 1]
jmp 0x513a5d
mov edx, dword [ebp - 0xc]
jmp 0x513901
mov eax, dword [ebp - 0x14]
cmp eax, 1
jne 0x5138e5
cmp cl, 0x26
je 0x5138aa
cmp cl, 0x3d
jne 0x513901
mov eax, dword [ebp - 8]
cmp byte [edx + eax - 1], bl
je 0x5138d1
cmp cl, 0x26
jne 0x5138da
mov ecx, eax
mov byte [edx + ecx], bl
inc ecx
mov dword [ebp - 8], ecx
mov eax, ecx
jmp 0x5138e1
cmp al, 0x23
je 0x513863
cmp byte [esi + edi - 1], 0x26
je 0x513863
inc esi
mov al, byte [esi + edi]
test al, al
jne 0x5138c5
jmp 0x513863
mov dword [ebp - 0x14], 2
mov cl, bl
jmp 0x513904
test eax, eax
jne 0x5138ee
cmp cl, 0x3f
je 0x5138f8
cmp eax, 2
jne 0x513901
cmp cl, 0x26
jne 0x513901
mov cl, bl
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 8]
mov byte [edx + eax], cl
inc eax
mov dword [ebp - 8], eax
jmp 0x513863
push edi
call fcn.00519db1
mov dword [ebp - 8], eax
inc eax
add eax, edi
push eax
mov dword [ebp - 0xc], eax
call fcn.00519db1
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
pop ecx
pop ecx
cmp eax, 3
jne 0x513953
push eax
push edi
push 0x583074
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x513950
mov eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
jmp 0x513a59
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], ebx
mov edi, ebx
mov dword [ebp - 0x18], ebx
cmp eax, 5
jne 0x51398b
push eax
push dword [ebp - 0x20]
push str.cache
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
mov eax, dword [ebp - 8]
jne 0x51398b
mov edi, 0x60000
mov dword [ebp - 0x14], 0x5f9240
mov dword [ebp - 0x18], str.cache
mov dword [ebp - 0x1c], edi
cmp eax, 4
jne 0x5139cb
push eax
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], edi
push str.mode
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x5139cb
mov ecx, dword [ebp - 0x10]
mov edx, 0x87
mov eax, 0x5f9258
mov dword [ebp - 0x18], str.access
and ecx, edx
mov dword [ebp - 0x14], eax
mov edi, edx
mov dword [ebp - 0x1c], ecx
jmp 0x5139ce
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x513a56
mov eax, dword [eax]
mov dword [ebp - 8], ebx
jmp 0x513a0b
push eax
call fcn.00519db1
pop ecx
mov ecx, dword [ebp - 0x24]
cmp ecx, eax
jne 0x5139fe
push ecx
push dword [ebp - 0x20]
push dword [ebp - 0xc]
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
je 0x513a32
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
inc ecx
mov dword [ebp - 8], ecx
mov eax, dword [eax + ecx*8]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x5139dd
push dword [ebp - 0xc]
push dword [ebp - 0x18]
push str.no_such__s_mode:__s
call fcn.004e73d9
mov ecx, dword [ebp + 0x1c]
xor ebx, ebx
add esp, 0xc
inc ebx
mov dword [ecx], eax
jmp 0x513ae7
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov ecx, dword [eax + ecx*8 + 4]
test ecx, ecx
je 0x513a12
mov eax, ecx
and eax, 0xffffff7f
cmp eax, dword [ebp - 0x1c]
jg 0x513a6c
not edi
and edi, dword [ebp - 0x10]
or edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 0x24]
inc edi
add edi, eax
mov dword [ebp - 0x20], edi
cmp byte [edi], bl
jne 0x513910
jmp 0x513ab9
push dword [ebp - 0xc]
push dword [ebp - 0x18]
push str._s_mode_not_allowed:__s
call fcn.004e73d9
mov ecx, dword [ebp + 0x1c]
add esp, 0xc
push 3
mov dword [ecx], eax
pop ebx
jmp 0x513ae7
lea eax, [esi + 2]
cdq
push edx
push eax
call fcn.004e74e8
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x513aa1
push 7
pop eax
jmp 0x513b04
push dword [ebp - 0x24]
push edi
push esi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x24]
add esp, 0xc
and dword [ebp - 0x10], 0xffffffbf
mov word [esi + eax], bx
mov edi, dword [ebp + 8]
push edi
call fcn.004e9f9d
pop ecx
mov ecx, eax
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
test ecx, ecx
jne 0x513ae3
push edi
push str.no_such_vfs:__s
call fcn.004e73d9
pop ecx
pop ecx
mov ecx, dword [ebp + 0x1c]
xor ebx, ebx
inc ebx
mov dword [ecx], eax
test ebx, ebx
je 0x513aee
push esi
call fcn.004e7553
pop ecx
mov ecx, dword [ebp + 0x10]
xor edx, edx
mov eax, dword [ebp - 0x10]
test ebx, ebx
cmove edx, esi
mov dword [ecx], eax
mov eax, ebx
mov ecx, dword [ebp + 0x18]
mov dword [ecx], edx
pop edi
pop esi
pop ebx
leave
ret