Function at 0x10031d80
Capabilities:
Parse credit card information

Disassembly:
sub esp, 0x20
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
test ebp, ebp
push esi
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x2c], edx
mov eax, ebp
jne 0x10031dab
xor edi, edi
jmp 0x10031dc2
cmp byte [ebp], 0
je 0x10031db9
add eax, 1
cmp byte [eax], 0
jne 0x10031db1
sub eax, ebp
and eax, 0x3fffffff
mov edi, eax
test cl, 0x40
jne 0x10031dd4
cmp dword [0x100c645c], 0
je 0x1003245e
cmp edi, 5
jl 0x1003245e
mov eax, 5
mov ecx, str.file:
mov edx, ebp
lea esp, [esp]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x10031e08
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x10031df0
test eax, eax
je 0x10031e65
movzx ebx, byte [ecx]
movzx esi, byte [edx]
sub esi, ebx
jne 0x10031e57
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x10031e65
movzx ebx, byte [ecx]
movzx esi, byte [edx]
sub esi, ebx
jne 0x10031e57
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x10031e65
movzx ebx, byte [ecx]
movzx esi, byte [edx]
sub esi, ebx
jne 0x10031e57
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x10031e65
movzx eax, byte [ecx]
movzx esi, byte [edx]
sub esi, eax
je 0x10031e65
test esi, esi
mov eax, 1
jg 0x10031e67
or eax, 0xffffffff
jmp 0x10031e67
xor eax, eax
test eax, eax
jne 0x1003245e
or dword [esp + 0x10], 0x40
xor ebx, ebx
test edi, edi
mov dword [esp + 0x14], ebx
lea ecx, [edi + 2]
jle 0x10031e93
xor edx, edx
cmp byte [eax + ebp], 0x26
sete dl
add eax, 1
add ecx, edx
cmp eax, edi
jl 0x10031e81
push ecx
call sym.SQLite.Interop.dll_sqlite3_malloc
add esp, 4
test eax, eax
mov dword [esp + 0x34], eax
jne 0x10031eb1
mov eax, 7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov cl, 0x2f
cmp byte [ebp + 5], cl
mov esi, 5
jne 0x10031fb4
cmp byte [ebp + 6], cl
jne 0x10031fb4
mov al, byte [ebp + 7]
test al, al
lea edx, [ebp + 7]
mov esi, 7
mov dword [esp + 0x28], edx
je 0x10031fb4
cmp al, cl
je 0x10031ef0
mov al, byte [esi + ebp + 1]
add esi, 1
test al, al
jne 0x10031ee1
cmp esi, 7
je 0x10031fb4
cmp esi, 0x10
jne 0x10031f97
mov ecx, edx
lea eax, [esi - 7]
mov edx, str.localhost
lea esp, [esp]
mov edi, dword [edx]
cmp edi, dword [ecx]
jne 0x10031f28
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x10031f10
test eax, eax
je 0x10031f8d
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x10031f77
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x10031f89
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x10031f77
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x10031f89
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x10031f77
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x10031f89
movzx edi, byte [edx]
movzx eax, byte [ecx]
sub edi, eax
je 0x10031f89
test edi, edi
mov ebx, dword [esp + 0x14]
mov eax, 1
jg 0x10031f8f
or eax, 0xffffffff
jmp 0x10031f8f
mov ebx, dword [esp + 0x14]
xor eax, eax
test eax, eax
je 0x10031fb4
mov edx, dword [esp + 0x28]
push edx
add esi, 0xfffffff9
push esi
push str.invalid_uri_authority:__.s
call sym.SQLite.Interop.dll_sqlite3_mprintf
mov ecx, dword [esp + 0x50]
add esp, 0xc
mov dword [ecx], eax
jmp 0x100324cd
mov al, byte [esi + ebp]
xor ecx, ecx
test al, al
mov dword [esp + 0x18], ecx
je 0x10032132
jmp 0x10031fd0
cmp al, 0x23
mov edx, dword [esp + 0x34]
je 0x10032127
add esi, 1
cmp al, 0x25
jne 0x100320a0
mov cl, byte [esi + ebp]
movzx edi, cl
test byte [edi + 0x100ab470], 8
je 0x1003209c
movzx edi, byte [esi + ebp + 1]
test byte [edi + 0x100ab470], 8
je 0x1003209c
movsx edx, byte [esi + ebp + 1]
movsx ecx, cl
mov eax, ecx
sar eax, 6
and al, 1
mov bl, 7
imul bl
add esi, 1
sub cl, al
mov eax, edx
sar eax, 6
and al, 1
imul bl
sub dl, al
and ecx, 0xf
shl ecx, 4
add esi, 1
and edx, 0xf
add ecx, edx
test ecx, ecx
jne 0x1003208c
mov al, byte [esi + ebp]
test al, al
mov ecx, dword [esp + 0x18]
je 0x10032114
cmp al, 0x23
je 0x10032114
test ecx, ecx
jne 0x10032060
cmp al, 0x3f
jmp 0x10032076
cmp ecx, 1
jne 0x1003206f
cmp al, 0x3d
je 0x10032114
jmp 0x10032074
cmp ecx, 2
jne 0x1003207c
cmp al, 0x26
je 0x10032114
mov al, byte [esi + ebp + 1]
add esi, 1
test al, al
jne 0x10032050
jmp 0x10032114
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
mov al, cl
mov ecx, dword [esp + 0x18]
jmp 0x1003210a
mov ecx, dword [esp + 0x18]
cmp ecx, 1
jne 0x100320ec
cmp al, 0x26
je 0x100320ad
cmp al, 0x3d
jne 0x1003210a
cmp byte [edx + ebx - 1], 0
jne 0x100320d8
mov al, byte [esi + ebp]
test al, al
je 0x10032114
jmp 0x100320c0
cmp al, 0x23
je 0x10032114
cmp byte [esi + ebp - 1], 0x26
je 0x10032114
mov al, byte [esi + ebp + 1]
add esi, 1
test al, al
jne 0x100320c0
jmp 0x10032114
cmp al, 0x26
jne 0x100320e5
mov byte [edx + ebx], 0
add ebx, 1
jmp 0x10032108
mov ecx, 2
jmp 0x10032104
test ecx, ecx
jne 0x100320f6
cmp al, 0x3f
je 0x100320ff
jmp 0x1003210a
cmp ecx, 2
jne 0x1003210a
cmp al, 0x26
jne 0x1003210a
mov ecx, 1
mov dword [esp + 0x18], ecx
xor al, al
mov byte [edx + ebx], al
add ebx, 1
mov dword [esp + 0x14], ebx
mov al, byte [esi + ebp]
test al, al
mov ebx, dword [esp + 0x14]
jne 0x10031fd0
mov edx, dword [esp + 0x34]
cmp ecx, 1
jne 0x10032132
mov byte [edx + ebx], 0
add ebx, ecx
mov esi, dword [esp + 0x34]
mov byte [esi + ebx], 0
mov ecx, esi
mov byte [esi + ebx + 1], 0
call fcn.10016110
cmp byte [eax + esi + 1], 0
lea edx, [eax + esi + 1]
je 0x100324a2
mov ecx, edx
call fcn.10016110
mov esi, eax
lea edi, [esi + edx + 1]
mov ecx, edi
mov dword [esp + 0x18], edi
call fcn.10016110
cmp esi, 3
mov ebp, eax
mov dword [esp + 0x14], ebp
jne 0x100321c4
movzx ecx, byte [edx]
mov eax, 0x76
sub eax, ecx
jne 0x100321a3
movzx ecx, byte [edx + 1]
add edx, 1
mov eax, 0x66
sub eax, ecx
jne 0x100321a3
add edx, 1
movzx edx, byte [edx]
mov eax, 0x73
sub eax, edx
je 0x100321b1
test eax, eax
mov ecx, 1
jg 0x100321b3
or ecx, 0xffffffff
jmp 0x100321b3
xor ecx, ecx
test ecx, ecx
jne 0x10032426
mov dword [esp + 0x2c], edi
jmp 0x10032426
cmp esi, 5
jne 0x10032270
mov ecx, edx
mov eax, esi
mov edx, str.cache
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x100321ee
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x100321d6
test eax, eax
je 0x1003224b
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x1003223d
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1003224b
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x1003223d
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1003224b
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x1003223d
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1003224b
movzx esi, byte [edx]
movzx eax, byte [ecx]
sub esi, eax
je 0x1003224b
test esi, esi
mov eax, 1
jg 0x1003224d
or eax, 0xffffffff
jmp 0x1003224d
xor eax, eax
test eax, eax
jne 0x10032426
mov eax, 0x60000
mov dword [esp + 0x28], eax
mov edi, 0x100c7424
mov dword [esp + 0x20], str.cache
jmp 0x1003231f
cmp esi, 4
jne 0x10032426
mov ecx, edx
mov eax, esi
mov edx, str.mode
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x1003229a
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x10032282
test eax, eax
je 0x100322f7
movzx ebx, byte [ecx]
movzx esi, byte [edx]
sub esi, ebx
jne 0x100322e9
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x100322f7
movzx ebx, byte [ecx]
movzx esi, byte [edx]
sub esi, ebx
jne 0x100322e9
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x100322f7
movzx ebx, byte [ecx]
movzx esi, byte [edx]
sub esi, ebx
jne 0x100322e9
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x100322f7
movzx ecx, byte [ecx]
movzx esi, byte [edx]
sub esi, ecx
je 0x100322f7
test esi, esi
mov eax, 1
jg 0x100322f9
or eax, 0xffffffff
jmp 0x100322f9
xor eax, eax
test eax, eax
jne 0x10032426
mov eax, dword [esp + 0x10]
mov dword [esp + 0x28], 0x87
mov edi, 0x100c743c
and eax, 0x87
mov dword [esp + 0x20], str.access
mov ecx, dword [edi]
xor ebx, ebx
test ecx, ecx
mov dword [esp + 0x24], eax
je 0x100323da
nop
call fcn.10016110
cmp ebp, eax
jne 0x100323cb
cmp ebp, 4
mov edx, dword [esp + 0x18]
mov eax, ebp
jb 0x1003235c
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x10032360
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x10032348
test eax, eax
je 0x100323c5
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x100323af
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x100323c1
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x100323af
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x100323c1
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x100323af
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x100323c1
movzx esi, byte [edx]
movzx edx, byte [ecx]
sub esi, edx
je 0x100323c1
test esi, esi
mov ebp, dword [esp + 0x14]
mov eax, 1
jg 0x100323c7
or eax, 0xffffffff
jmp 0x100323c7
mov ebp, dword [esp + 0x14]
xor eax, eax
test eax, eax
je 0x100323fc
mov ecx, dword [edi + ebx*8 + 8]
add ebx, 1
test ecx, ecx
jne 0x10032330
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
push edx
push eax
push str.no_such__s_mode:__s
call sym.SQLite.Interop.dll_sqlite3_mprintf
mov ecx, dword [esp + 0x50]
add esp, 0xc
mov dword [ecx], eax
jmp 0x100324cd
mov eax, dword [edi + ebx*8 + 4]
test eax, eax
je 0x100323da
mov ecx, eax
and ecx, 0xffffff7f
cmp ecx, dword [esp + 0x24]
jg 0x10032437
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x18]
not ecx
and ecx, dword [esp + 0x10]
or ecx, eax
mov dword [esp + 0x10], ecx
cmp byte [edi + ebp + 1], 0
lea edx, [edi + ebp + 1]
jne 0x10032155
jmp 0x1003249e
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
push edx
push eax
push str._s_mode_not_allowed:__s
call sym.SQLite.Interop.dll_sqlite3_mprintf
mov ecx, dword [esp + 0x50]
add esp, 0xc
mov dword [ecx], eax
mov dword [esp + 0x1c], 3
jmp 0x100324d5
call sym.SQLite.Interop.dll_sqlite3_initialize
test eax, eax
jne 0x10031ea4
lea edx, [edi + 2]
push edx
call fcn.10025930
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x34], esi
je 0x10031ea4
push edi
push ebp
push esi
call fcn.10008750
add esp, 0xc
and dword [esp + 0x10], 0xffffffbf
mov byte [esi + edi], 0
mov byte [esi + edi + 1], 0
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x2c]
push edi
call sym.SQLite.Interop.dll_sqlite3_vfs_find
mov ecx, dword [esp + 0x40]
add esp, 4
test eax, eax
mov dword [ecx], eax
jne 0x100324ee
push edi
push str.no_such_vfs:__s
call sym.SQLite.Interop.dll_sqlite3_mprintf
mov edx, dword [esp + 0x4c]
add esp, 8
mov dword [edx], eax
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x34]
push eax
call sym.SQLite.Interop.dll_sqlite3_free
mov dword [esp + 0x38], 0
mov esi, dword [esp + 0x38]
add esp, 4
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x10]
pop edi
mov dword [eax], esi
mov eax, dword [esp + 0x18]
pop esi
pop ebp
mov dword [ecx], edx
pop ebx
add esp, 0x20
ret