Function at 0x10038370
Capabilities:
Parse credit card information

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, eax
mov eax, dword [esp + 0x38]
mov ebx, dword [eax]
mov eax, edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x30], ecx
call fcn.10002170
mov esi, eax
test bl, 0x40
jne 0x100383aa
cmp dword [0x1006600c], 0
je 0x100387e9
cmp esi, 5
jl 0x100387e9
cmp dword [edi], 0x656c6966
jne 0x100387e9
cmp byte [edi + 4], 0x3a
jne 0x100387e9
or dword [esp + 0x10], 0x40
lea eax, [esi + 2]
cdq
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov ebx, eax
mov ebp, edx
test esi, esi
jle 0x100383fa
cmp byte [ecx + edi], 0x26
jne 0x100383ed
mov eax, 1
jmp 0x100383ef
xor eax, eax
xor edx, edx
add ebx, eax
adc ebp, edx
inc ecx
cmp ecx, esi
jl 0x100383e0
push ebp
push ebx
call fcn.1000df70
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x10038419
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
add esp, 0x24
ret
mov cl, 0x2f
mov esi, 5
cmp byte [edi + 5], cl
jne 0x10038492
cmp byte [edi + 6], cl
jne 0x10038492
mov al, byte [edi + 7]
lea ebx, [edi + 7]
mov esi, 7
test al, al
je 0x10038492
lea esp, [esp]
cmp al, cl
je 0x1003844d
mov al, byte [esi + edi + 1]
inc esi
test al, al
jne 0x10038440
cmp esi, 7
je 0x10038492
cmp esi, 0x10
jne 0x1003847b
lea eax, [esi - 7]
mov ecx, ebx
mov edx, str.localhost
mov ebp, dword [edx]
cmp ebp, dword [ecx]
jne 0x1003847b
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x10038461
mov al, byte [ecx]
cmp al, byte [edx]
je 0x10038492
push ebx
add esi, 0xfffffff9
push esi
push str.invalid_uri_authority:__.s
call sym.idmindex.dll_sqlite3_mprintf
add esp, 0xc
jmp 0x10038843
mov bl, byte [esi + edi]
xor ecx, ecx
mov dword [esp + 0x1c], ecx
test bl, bl
je 0x100385f4
cmp bl, 0x23
je 0x100385de
inc esi
cmp bl, 0x25
jne 0x1003854a
mov al, byte [esi + edi]
movzx edx, al
test byte [edx + 0x1005c928], 8
je 0x1003854a
movzx edx, byte [esi + edi + 1]
test byte [edx + 0x1005c928], 8
je 0x1003854a
movsx ebp, byte [esi + edi + 1]
movsx eax, al
inc esi
call fcn.10002e50
movzx ebx, al
mov eax, ebp
shl ebx, 4
call fcn.10002e50
movzx eax, al
add ebx, eax
inc esi
test ebx, ebx
jne 0x100385bf
mov al, byte [esi + edi]
test al, al
je 0x100385cf
mov ecx, dword [esp + 0x1c]
nop
cmp al, 0x23
je 0x100385cf
test ecx, ecx
jne 0x10038520
cmp al, 0x3f
jmp 0x10038536
cmp ecx, 1
jne 0x1003852f
cmp al, 0x3d
je 0x100385cf
jmp 0x10038534
cmp ecx, 2
jne 0x1003853c
cmp al, 0x26
je 0x100385cf
mov al, byte [esi + edi + 1]
inc esi
test al, al
jne 0x10038510
jmp 0x100385cf
cmp ecx, 1
jne 0x100385a0
cmp bl, 0x26
je 0x10038559
cmp bl, 0x3d
jne 0x100385bf
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
cmp byte [ecx + eax - 1], 0
jne 0x10038586
mov al, byte [esi + edi]
test al, al
je 0x100385cf
nop
cmp al, 0x23
je 0x100385cf
cmp byte [esi + edi - 1], 0x26
je 0x100385cf
mov al, byte [esi + edi + 1]
inc esi
test al, al
jne 0x10038570
jmp 0x100385cf
cmp bl, 0x26
jne 0x10038596
mov byte [ecx + eax], 0
inc eax
mov dword [esp + 0x18], eax
jmp 0x100385bd
mov dword [esp + 0x1c], 2
jmp 0x100385bd
test ecx, ecx
jne 0x100385ab
cmp bl, 0x3f
je 0x100385b5
jmp 0x100385bf
cmp ecx, 2
jne 0x100385bf
cmp bl, 0x26
jne 0x100385bf
mov dword [esp + 0x1c], 1
xor bl, bl
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov byte [ecx + eax], bl
inc eax
mov dword [esp + 0x18], eax
mov bl, byte [esi + edi]
mov ecx, dword [esp + 0x1c]
test bl, bl
jne 0x100384a3
cmp ecx, 1
jne 0x100385f4
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov byte [edx + eax], 0
inc eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov byte [esi + eax], 0
mov byte [esi + eax + 1], 0
mov eax, esi
call fcn.10002170
cmp byte [eax + esi + 1], 0
lea esi, [eax + esi + 1]
je 0x1003881e
mov ebp, 0x60000
mov eax, esi
call fcn.10002170
mov edi, eax
lea ebx, [edi + esi + 1]
mov eax, ebx
mov dword [esp + 0x1c], ebx
call fcn.10002170
mov dword [esp + 0x18], eax
cmp edi, 3
jne 0x10038667
cmp byte [esi], 0x76
jne 0x100387b3
cmp byte [esi + 1], 0x66
jne 0x100387b3
cmp byte [esi + 2], 0x73
jne 0x100387b3
mov dword [esp + 0x30], ebx
jmp 0x100387b3
cmp edi, 5
jne 0x10038699
cmp dword [esi], 0x68636163
jne 0x100387b3
cmp byte [esi + 4], 0x65
jne 0x100387b3
mov dword [esp + 0x2c], ebp
mov ebx, 0x10066fbc
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], str.cache
jmp 0x100386d0
cmp edi, 4
jne 0x100387b3
cmp dword [esi], 0x65646f6d
jne 0x100387b3
mov eax, dword [esp + 0x10]
and eax, 0x87
mov dword [esp + 0x2c], 0x87
mov ebx, 0x10066fd4
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], str.access
mov edi, dword [ebx]
xor ebp, ebp
test edi, edi
je 0x10038768
lea esp, [esp]
mov eax, edi
call fcn.10002170
cmp dword [esp + 0x18], eax
jne 0x1003875b
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, edi
cmp esi, 4
jb 0x10038714
lea esp, [esp]
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x10038718
sub esi, 4
add ecx, 4
add edx, 4
cmp esi, 4
jae 0x10038700
test esi, esi
je 0x10038784
movzx eax, byte [edx]
movzx edi, byte [ecx]
sub eax, edi
jne 0x10038753
cmp esi, 1
jbe 0x10038784
movzx eax, byte [edx + 1]
movzx edi, byte [ecx + 1]
sub eax, edi
jne 0x10038753
cmp esi, 2
jbe 0x10038784
movzx eax, byte [edx + 2]
movzx edi, byte [ecx + 2]
sub eax, edi
jne 0x10038753
cmp esi, 3
jbe 0x10038784
movzx eax, byte [edx + 3]
movzx ecx, byte [ecx + 3]
sub eax, ecx
sar eax, 0x1f
or eax, 1
je 0x10038784
mov edi, dword [ebx + ebp*8 + 8]
inc ebp
test edi, edi
jne 0x100386e0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
push ecx
push edx
push str.no_such__s_mode:__s
call sym.idmindex.dll_sqlite3_mprintf
add esp, 0xc
jmp 0x10038843
mov eax, dword [ebx + ebp*8 + 4]
test eax, eax
je 0x10038768
mov edx, eax
and edx, 0xffffff7f
cmp edx, dword [esp + 0x28]
jg 0x100387c8
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x1c]
not ecx
and ecx, dword [esp + 0x10]
mov ebp, 0x60000
or ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x18]
cmp byte [eax + ebx + 1], 0
lea esi, [eax + ebx + 1]
jne 0x10038620
jmp 0x1003881e
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
push edx
push eax
push str._s_mode_not_allowed:__s
call sym.idmindex.dll_sqlite3_mprintf
add esp, 0xc
mov dword [esp + 0x20], 3
jmp 0x1003884b
lea eax, [esi + 2]
cdq
push edx
push eax
call fcn.1000df70
mov ebx, eax
add esp, 8
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x1003840c
push esi
push edi
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
and dword [esp + 0x10], 0xffffffbf
mov byte [ebx + esi], 0
mov byte [ebx + esi + 1], 0
mov esi, dword [esp + 0x30]
push esi
call sym.idmindex.dll_sqlite3_vfs_find
mov edx, dword [esp + 0x40]
add esp, 4
mov dword [edx], eax
test eax, eax
jne 0x10038866
push esi
push str.no_such_vfs:__s
call sym.idmindex.dll_sqlite3_mprintf
add esp, 8
mov dword [esp + 0x20], 1
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
push edx
mov dword [ecx], eax
call sym.idmindex.dll_sqlite3_free
add esp, 4
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x40]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x10]
pop esi
pop ebp
mov dword [edx], eax
mov eax, dword [esp + 0x14]
pop ebx
add esp, 0x24
ret