Function at 0x100eedb0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x30]
push esi
push edi
mov edi, dword [esp + 0x24]
mov dword [ebp], 0
mov al, byte [ebx]
cmp al, 0xa
je 0x100ef300
cmp al, 0xd
je 0x100ef300
mov ecx, dword [edi + 0xd4]
lea ebp, [edi + 0xd4]
mov esi, 4
lea eax, [ecx + 1]
mov dword [ebp], eax
test ecx, ecx
jne 0x100ef21a
mov dword [edi + 0xe0], ecx
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 0x2b4]
mov eax, dword [eax + 0x48]
test al, 3
je 0x100eefc9
mov al, byte [ebx]
mov esi, ebx
test al, al
je 0x100eee31
nop dword [eax]
cmp al, 0x20
je 0x100eee29
cmp byte [esi], 9
jne 0x100eee31
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x100eee20
push 5
push str.HTTP_
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x100eeef4
movsx ecx, byte [esi + 5]
mov eax, ecx
sub eax, 0x31
je 0x100eef24
sub eax, 1
je 0x100eee7d
sub eax, 1
je 0x100eee7d
push str.Unsupported_HTTP_version_in_response
push edi
call fcn.100def90
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov al, byte [esi + 6]
cmp al, 0x20
je 0x100eee88
cmp al, 9
jne 0x100eeef4
lea eax, [ecx - 0x30]
lea eax, [eax + eax*4]
add eax, eax
mov dword [edi + 0xe0], eax
mov cl, byte [esi + 7]
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x100eeef4
mov dl, byte [esi + 8]
lea eax, [edx - 0x30]
cmp al, 9
ja 0x100eeef4
mov dh, byte [esi + 9]
mov al, dh
sub al, 0x30
cmp al, 9
ja 0x100eeef4
movsx eax, cl
lea ecx, [eax + eax*4]
movsx eax, dl
lea eax, [eax + ecx*2]
lea ecx, [eax + eax*4]
movsx eax, dh
lea eax, [eax + ecx*2]
add eax, 0xffffeb30
mov dword [edi + 0xe4], eax
mov al, byte [esi + 0xa]
cmp al, 0x20
je 0x100ef0a6
cmp al, 9
je 0x100ef0a6
cmp al, 0xa
jl 0x100eeef4
cmp al, 0xd
jle 0x100ef0a6
push dword [esp + 0x2c]
push ebx
push edi
call fcn.100ee1c0
add esp, 0xc
cmp eax, 1
jne 0x100ef249
mov dword [edi + 0xe4], 0xc8
mov dword [edi + 0xe0], 0xa
jmp 0x100ef0a6
cmp byte [esi + 6], 0x2e
jne 0x100eefae
mov al, byte [esi + 7]
cmp al, 0x30
je 0x100eef39
cmp al, 0x31
jne 0x100eefae
mov cl, byte [esi + 8]
cmp cl, 0x20
je 0x100eef46
cmp cl, 9
jne 0x100eefae
movsx eax, al
sub eax, 0x26
mov dword [edi + 0xe0], eax
mov cl, byte [esi + 9]
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x100eefae
mov dl, byte [esi + 0xa]
lea eax, [edx - 0x30]
cmp al, 9
ja 0x100eefae
mov dh, byte [esi + 0xb]
mov al, dh
sub al, 0x30
cmp al, 9
ja 0x100eefae
movsx eax, cl
lea ecx, [eax + eax*4]
movsx eax, dl
lea eax, [eax + ecx*2]
lea ecx, [eax + eax*4]
movsx eax, dh
lea eax, [eax + ecx*2]
add eax, 0xffffeb30
mov dword [edi + 0xe4], eax
mov al, byte [esi + 0xc]
cmp al, 0x20
je 0x100ef0a6
cmp al, 9
je 0x100ef0a6
sub al, 0xa
cmp al, 3
jbe 0x100ef0a6
push str.Unsupported_HTTP_1_subversion_in_response
push edi
call fcn.100def90
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
test eax, 0x40000
je 0x100ef249
mov al, byte [ebx]
mov esi, ebx
test al, al
je 0x100eeff1
nop dword [eax]
cmp al, 0x20
je 0x100eefe9
cmp byte [esi], 9
jne 0x100eeff1
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x100eefe0
push 5
push str.RTSP_
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x100ef249
mov al, byte [esi + 5]
sub al, 0x30
cmp al, 9
ja 0x100ef250
cmp byte [esi + 6], 0x2e
jne 0x100ef250
mov al, byte [esi + 7]
sub al, 0x30
cmp al, 9
ja 0x100ef250
mov al, byte [esi + 8]
cmp al, 0x20
je 0x100ef03c
cmp al, 9
jne 0x100ef250
mov cl, byte [esi + 9]
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x100ef250
mov dl, byte [esi + 0xa]
lea eax, [edx - 0x30]
cmp al, 9
ja 0x100ef250
mov dh, byte [esi + 0xb]
mov al, dh
sub al, 0x30
cmp al, 9
ja 0x100ef250
movsx eax, cl
lea ecx, [eax + eax*4]
movsx eax, dl
lea eax, [eax + ecx*2]
lea ecx, [eax + eax*4]
movsx eax, dh
lea eax, [eax + ecx*2]
add eax, 0xffffeb30
mov dword [edi + 0xe4], eax
mov al, byte [esi + 0xc]
cmp al, 0x20
je 0x100ef09c
cmp al, 9
je 0x100ef09c
sub al, 0xa
cmp al, 3
ja 0x100ef250
mov dword [edi + 0xe0], 0xb
mov ecx, dword [edi + 0xe0]
mov eax, ecx
mov esi, dword [edi + 0x18]
sub eax, 0xa
je 0x100ef0d0
sub eax, 1
je 0x100ef0d0
mov eax, ecx
mov ecx, 0xa
cdq
idiv ecx
mov ebp, eax
mov ecx, edx
mov eax, str.Unsupported_HTTP_version___u._d__in_response
jmp 0x100ef107
mov al, byte [esi + 0x518]
test al, al
je 0x100ef120
movzx ecx, al
mov eax, 0xcccccccd
mul ecx
mov eax, 0x66666667
mov ebp, edx
imul dword [edi + 0xe0]
shr ebp, 3
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, ebp
je 0x100ef120
mov eax, str.Version_mismatch__from_HTTP__u_to_HTTP__u_
push ecx
push ebp
push eax
push edi
call fcn.100def90
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [edi + 0xe4]
mov dword [edi + 0xd28], eax
mov eax, dword [edi + 0xe0]
mov dword [edi + 0xd30], eax
movzx eax, byte [edi + 0xe0]
mov byte [esi + 0x518], al
mov al, byte [edi + 0xd05]
test al, al
je 0x100ef15a
movzx eax, al
cmp eax, dword [edi + 0xe0]
jle 0x100ef166
mov al, byte [edi + 0xe0]
mov byte [edi + 0xd05], al
mov eax, dword [edi + 0xbe8]
or eax, dword [edi + 0xbec]
je 0x100ef190
cmp byte [edi + 0xd06], 0
jne 0x100ef190
cmp dword [edi + 0xe4], 0x1a0
jne 0x100ef190
mov byte [edi + 0x142], 1
cmp dword [edi + 0xe0], 0xa
jne 0x100ef1af
push str.HTTP_1.0__assume_close_after_body
push edi
call fcn.100df060
push 1
push esi
call fcn.100e16c0
add esp, 0x10
mov ecx, dword [edi + 0xe4]
lea eax, [ecx - 0x64]
cmp eax, 0x63
setbe al
mov byte [edi + 0x143], al
sub ecx, 0xcc
je 0x100ef1e0
sub ecx, 0x64
jne 0x100ef20f
cmp byte [edi + 0x3c0], cl
je 0x100ef1e0
mov byte [edi + 0xde8], 1
mov dword [edi + 0x98], 0
mov dword [edi + 0x9c], 0
mov dword [edi + 0xa0], 0
mov dword [edi + 0xa4], 0
mov byte [edi + 0x143], 1
mov esi, 0xc
lea ebp, [edi + 0xd4]
push dword [esp + 0x2c]
push 0
push ebx
call sub.VCRUNTIME140.dll_memchr
add esp, 0xc
test eax, eax
je 0x100ef25d
mov eax, str.Nul_byte_in_header
push eax
push edi
call fcn.100def90
add esp, 8
mov eax, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov byte [edi + 0x139], 0
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0x10
ret
mov ecx, dword [ebp]
cmp ecx, 2
jl 0x100ef2a4
mov al, byte [ebx]
cmp al, 0x20
je 0x100ef26f
cmp al, 9
jne 0x100ef274
cmp ecx, 2
jg 0x100ef2a4
mov ebp, dword [esp + 0x2c]
push ebp
push 0x3a
push ebx
call sub.VCRUNTIME140.dll_memchr
add esp, 0xc
test eax, eax
jne 0x100ef2a8
mov eax, str.Header_without_colon
push eax
push edi
call fcn.100def90
add esp, 8
mov eax, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov ebp, dword [esp + 0x2c]
push ebp
push ebx
push edi
call fcn.100ec8e0
add esp, 0xc
test eax, eax
jne 0x100ef37b
push ebp
push ebx
push 1
push edi
call fcn.100deef0
mov eax, dword [edi + 0xe4]
add esp, 0x10
sub eax, 0x64
cmp eax, 0x64
jae 0x100ef2d9
or esi, 0x20
push ebp
push ebx
push esi
push edi
call fcn.100e0240
add esp, 0x10
test eax, eax
jne 0x100ef37b
push eax
push ebp
push edi
call fcn.100ebf20
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x2c]
lea eax, [esi + 1]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.100d1ac0
push esi
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.100d1a80
add esp, 0x14
test eax, eax
jne 0x100ef37b
lea eax, [edi + 0x890]
push eax
call fcn.100d1b00
add esp, 4
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x38]
lea eax, [esp + 0x18]
push dword [esp + 0x38]
push eax
call fcn.100d1ae0
add esp, 4
push eax
lea eax, [esp + 0x20]
push eax
call fcn.100d1af0
add esp, 4
push eax
push edi
call fcn.100ee310
mov ecx, dword [esp + 0x3c]
mov esi, eax
add dword [ebp], ecx
lea eax, [esp + 0x28]
push eax
call fcn.100d1a90
add esp, 0x1c
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret