Function at 0x1005bd90
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp + 0xc]
push 0x100af3b5
call fcn.1005de40
mov ebx, dword [ebp + 8]
mov edx, ebx
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x1005bdb1
sub edx, esi
lea edi, [edx + 0x100]
push edi
mov dword [ebp - 0x14], edi
call fcn.10060201
push edi
mov esi, eax
push 0
push esi
mov dword [ebp + 8], esi
call fcn.100638d0
mov cl, byte [ebx]
add esp, 0x10
xor edi, edi
test cl, cl
je 0x1005c211
cmp cl, 0x3d
jne 0x1005c201
cmp byte [ebx + 1], 0x3f
jne 0x1005c201
lea ecx, [ebx + 2]
mov esi, ecx
cmp byte [esi], 0
je 0x1005be4b
mov al, byte [esi]
cmp al, 0x20
jle 0x1005be4b
cmp al, 0x28
je 0x1005be4b
cmp al, 0x29
je 0x1005be4b
cmp al, 0x3c
je 0x1005be4b
cmp al, 0x3e
je 0x1005be4b
cmp al, 0x40
je 0x1005be4b
cmp al, 0x2c
je 0x1005be4b
cmp al, 0x3b
je 0x1005be4b
cmp al, 0x3a
je 0x1005be4b
cmp al, 0x22
je 0x1005be4b
cmp al, 0x2f
je 0x1005be4b
cmp al, 0x5b
je 0x1005be4b
cmp al, 0x5d
je 0x1005be4b
cmp al, 0x3f
je 0x1005be4b
cmp al, 0x2e
je 0x1005be4b
cmp al, 0x3d
je 0x1005be4b
inc esi
cmp byte [esi], 0
jne 0x1005be03
cmp byte [esi], 0x3f
jne 0x1005c1f8
mov al, byte [esi + 1]
cmp al, 0x51
je 0x1005be63
cmp al, 0x71
jne 0x1005c023
cmp byte [esi + 2], 0x3f
jne 0x1005c023
push ecx
mov ecx, dword [ebp - 0xc]
mov byte [esi], 0
call fcn.1005c5d0
mov byte [esi], 0x3f
mov edx, eax
mov cl, byte [esi + 3]
add esi, 3
mov dword [ebp - 8], edx
mov ebx, edi
mov dword [ebp - 4], ebx
test cl, cl
je 0x1005bf5a
cmp cl, 0x3f
je 0x1005bf61
cmp cl, 0x20
jle 0x1005bf54
cmp cl, 0x3d
jne 0x1005bf33
movsx eax, byte [esi + 1]
push eax
call fcn.100702ee
add esp, 4
test eax, eax
je 0x1005bec8
mov bl, byte [esi + 1]
sub bl, 0x30
jmp 0x1005bee4
movsx eax, byte [esi + 1]
push eax
call fcn.1007031b
mov bl, byte [esi + 1]
add esp, 4
test eax, eax
je 0x1005bee1
sub bl, 0x57
jmp 0x1005bee4
sub bl, 0x37
movsx eax, byte [esi + 2]
add esi, 2
push eax
shl bl, 4
call fcn.100702ee
add esp, 4
test eax, eax
je 0x1005bf09
mov al, byte [esi]
sub al, 0x30
add bl, al
mov eax, dword [ebp + 8]
mov byte [edi + eax], bl
jmp 0x1005bf47
movsx eax, byte [esi]
push eax
call fcn.1007031b
add esp, 4
test eax, eax
mov al, byte [esi]
je 0x1005bf27
sub al, 0x57
add bl, al
mov eax, dword [ebp + 8]
mov byte [edi + eax], bl
jmp 0x1005bf47
sub al, 0x37
add bl, al
mov eax, dword [ebp + 8]
mov byte [edi + eax], bl
jmp 0x1005bf47
movzx eax, cl
cmp cl, 0x5f
mov ecx, 0x20
cmove eax, ecx
mov ecx, dword [ebp + 8]
mov byte [edi + ecx], al
mov cl, byte [esi + 1]
inc esi
inc edi
test cl, cl
jne 0x1005be94
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 8]
cmp byte [esi], 0x3f
jne 0x1005bf70
jmp 0x1005bf67
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 4]
cmp byte [esi + 1], 0x3d
jne 0x1005bf70
add esi, 2
mov eax, dword [ebp + 8]
push 0
push 0
push 0xffffffffffffffff
add eax, ebx
push eax
push 0
push edx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
mov edx, 2
lea edi, [eax + 1]
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10060201
lea ecx, [edi + edi]
mov ebx, eax
push ecx
push 0
push ebx
call fcn.100638d0
add esp, 0x10
push edi
mov edi, dword [ebp - 4]
add edi, dword [ebp + 8]
push ebx
push 0xffffffffffffffff
push edi
push 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push dword [ebp - 0x14]
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
call fcn.100601d9
add esp, 4
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x1005bfe8
mov eax, dword [ebp - 4]
sub edi, ecx
add edi, eax
mov al, byte [esi]
cmp al, 0x20
je 0x1005c004
cmp al, 9
jne 0x1005c1f0
cmp byte [esi + 1], 0x3d
lea eax, [esi + 1]
jne 0x1005c1f0
cmp byte [esi + 2], 0x3f
cmove esi, eax
lea ebx, [esi - 1]
mov esi, dword [ebp + 8]
jmp 0x1005c205
cmp al, 0x42
je 0x1005c02f
cmp al, 0x62
jne 0x1005c1f8
cmp byte [esi + 2], 0x3f
jne 0x1005c1f8
push ecx
mov ecx, dword [ebp - 0xc]
mov byte [esi], 0
call fcn.1005c5d0
mov byte [esi], 0x3f
xor ebx, ebx
add esi, 3
mov dword [ebp - 4], eax
mov dword [ebp - 8], edi
cmp byte [esi], bl
je 0x1005c06e
mov cl, byte [esi]
nop dword [eax]
cmp cl, 0x3f
je 0x1005c06e
mov cl, byte [ebx + esi + 1]
inc ebx
test cl, cl
jne 0x1005c060
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push esi
call fcn.1005bb00
mov edx, eax
add esi, ebx
add esp, 8
mov dword [ebp - 0x18], esi
test edx, edx
je 0x1005c0b6
mov ebx, dword [ebp - 0x10]
xor ecx, ecx
test ebx, ebx
je 0x1005c0a4
mov esi, dword [ebp + 8]
mov al, byte [edx + ecx]
inc ecx
mov byte [edi + esi], al
inc edi
cmp ecx, ebx
jb 0x1005c095
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp + 8]
push edx
mov byte [edi + ebx], 0
call fcn.100601d9
add esp, 4
jmp 0x1005c0b9
mov ebx, dword [ebp + 8]
cmp byte [esi], 0x3f
jne 0x1005c0c7
cmp byte [esi + 1], 0x3d
jne 0x1005c0c7
add esi, 2
cmp dword [ebp - 4], 0xc42c
jne 0x1005c14d
mov edx, dword [ebp - 8]
add edx, ebx
mov ecx, edx
lea edi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005c0e0
sub ecx, edi
cmp ecx, 6
jb 0x1005c14d
cmp dword [edx], 0x1b42241b
jne 0x1005c10e
cmp word [edx + 4], 0x4224
je 0x1005c12e
cmp dword [edx], 0x1b42241b
jne 0x1005c10e
cmp word [edx + 4], 0x4024
je 0x1005c12e
cmp dword [edx], 0x1b40241b
jne 0x1005c14d
cmp word [edx + 4], 0x4224
je 0x1005c12e
cmp dword [edx], 0x1b40241b
jne 0x1005c14d
cmp word [edx + 4], 0x4024
jne 0x1005c14d
lea edi, [edx + 3]
mov ecx, edi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005c136
sub ecx, ebx
lea eax, [ecx + 1]
push eax
push edi
push edx
call fcn.100632e0
add esp, 0xc
mov eax, dword [ebp - 8]
add eax, dword [ebp + 8]
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
mov edx, 2
lea edi, [eax + 1]
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10060201
lea ecx, [edi + edi]
mov ebx, eax
push ecx
push 0
push ebx
call fcn.100638d0
add esp, 0x10
push edi
mov edi, dword [ebp - 8]
add edi, dword [ebp + 8]
push ebx
push 0xffffffffffffffff
push edi
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push dword [ebp - 0x14]
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
call fcn.100601d9
add esp, 4
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x1005c1c8
mov eax, dword [ebp - 8]
sub edi, ecx
add edi, eax
mov al, byte [esi]
cmp al, 0x20
je 0x1005c1e0
cmp al, 9
jne 0x1005c1f0
cmp byte [esi + 1], 0x3d
lea eax, [esi + 1]
jne 0x1005c1f0
cmp byte [esi + 2], 0x3f
cmove esi, eax
lea ebx, [esi - 1]
mov esi, dword [ebp + 8]
jmp 0x1005c205
mov esi, dword [ebp + 8]
mov byte [edi + esi], 0x3d
jmp 0x1005c204
mov byte [edi + esi], cl
inc edi
mov cl, byte [ebx + 1]
inc ebx
test cl, cl
jne 0x1005bde6
mov ecx, dword [ebp + 0xc]
push esi
mov byte [edi + esi], 0
call fcn.1005de40
push esi
call fcn.100601d9
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8