Function at 0x404030
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
cmp dword [ebp + 0xc], 0
jbe 0x4046d5
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
test edx, edx
je 0x4046a3
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 0x7f
jge 0x4046a3
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
cmp eax, 0x20
jle 0x4046a3
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0x5e
jne 0x4043a7
cmp dword [ebp - 0x24], 0x19
jbe 0x4043a7
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
test eax, eax
jne 0x4040e2
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
movzx eax, byte [edx]
push eax
call fcn.004049d0
add esp, 4
cmp eax, 1
jne 0x4040e2
mov dword [ebp - 0x10], 1
jmp 0x404116
mov ecx, dword [ebp - 0x18]
movzx edx, byte [ecx]
push edx
call fcn.004049d0
add esp, 4
cmp eax, 1
jne 0x4040ff
mov dword [ebp - 0x10], 0
jmp 0x404116
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
sub ecx, 1
mov dword [ebp + 0xc], ecx
jmp 0x404047
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00404a00
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4043a7
cmp dword [ebp - 0x10], 0
jne 0x404154
mov edx, dword [ebp - 8]
sub edx, 1
mov eax, dword [ebp - 4]
sub eax, edx
mov dword [ebp - 4], eax
jmp 0x404163
mov ecx, dword [ebp - 8]
lea edx, [ecx + ecx - 2]
mov eax, dword [ebp - 4]
sub eax, edx
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x18], ecx
push 0x14
push 0
lea edx, [ebp - 0x3c]
push edx
call fcn.004017c0
add esp, 0xc
cmp dword [ebp - 0x10], 1
jne 0x40419d
push 0
push 0
push 0x14
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x4041b1
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x3c]
push edx
call fcn.00401800
add esp, 0xc
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 8]
push edx
lea eax, [ebp - 0x3c]
push eax
call fcn.004048e0
add esp, 8
cmp eax, 1
jne 0x4043a7
cmp dword [ebp - 0x10], 0
jne 0x4041ea
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
jmp 0x4041f6
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
lea ecx, [eax + edx*2]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
cmp eax, 0x5e
jne 0x4043a7
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00404ae0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4043a7
cmp dword [ebp - 0x10], 0
jne 0x404233
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x40423f
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
lea eax, [edx + ecx*2]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
mov edx, 0x4f
sub edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00404b50
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4043a7
cmp dword [ebp - 0x10], 0
jne 0x404283
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x40428f
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
lea eax, [edx + ecx*2]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
push 0x4f
push 0
lea edx, [ebp - 0xb4]
push edx
call fcn.004017c0
add esp, 0xc
lea eax, [ebp - 0xb4]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov byte [ecx], 0x25
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov byte [eax], 0x42
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x10], 0
jne 0x4042ee
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00401800
add esp, 0xc
jmp 0x40430a
push 0
push 0
push 0x4f
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov byte [eax], 0x3f
lea ecx, [ebp - 0xb4]
push ecx
mov edx, dword [0x4083c0]
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrA]
test eax, eax
jne 0x4043a7
mov eax, dword [ebp - 0xc]
add eax, 3
push eax
lea ecx, [ebp - 0xb4]
push ecx
call fcn.00404750
add esp, 8
mov edx, dword [ebp - 0xc]
add edx, 3
push edx
lea eax, [ebp - 0xb4]
push eax
call fcn.004046e0
add esp, 8
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x28]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0x10], 0
jne 0x404387
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0xc]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0xc]
mov dword [ebp + 0xc], eax
jmp 0x4043a0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx*2]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 0xc]
shl ecx, 1
mov edx, dword [ebp + 0xc]
sub edx, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 0x3d
je 0x4043c1
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
cmp eax, 0x44
jne 0x4046a3
cmp dword [ebp - 0x24], 0x19
jbe 0x4046a3
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x404411
mov edx, dword [ebp - 4]
sub edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
movzx ecx, byte [eax]
push ecx
call fcn.004049d0
add esp, 4
cmp eax, 1
jne 0x404411
mov dword [ebp - 0x10], 1
jmp 0x404445
mov edx, dword [ebp - 0x18]
movzx eax, byte [edx]
push eax
call fcn.004049d0
add esp, 4
cmp eax, 1
jne 0x40442e
mov dword [ebp - 0x10], 0
jmp 0x404445
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
sub edx, 1
mov dword [ebp + 0xc], edx
jmp 0x404047
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00404a00
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4046a3
cmp dword [ebp - 0x10], 0
jne 0x404483
mov eax, dword [ebp - 8]
sub eax, 1
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 4], ecx
jmp 0x404492
mov edx, dword [ebp - 8]
lea eax, [edx + edx - 2]
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x18], edx
push 0x14
push 0
lea eax, [ebp - 0x3c]
push eax
call fcn.004017c0
add esp, 0xc
cmp dword [ebp - 0x10], 1
jne 0x4044cc
push 0
push 0
push 0x14
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x4044e0
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x3c]
push eax
call fcn.00401800
add esp, 0xc
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.004048e0
add esp, 8
cmp eax, 1
jne 0x4046a3
cmp dword [ebp - 0x10], 0
jne 0x404519
mov edx, dword [ebp - 4]
add edx, dword [ebp - 8]
mov dword [ebp - 4], edx
jmp 0x404525
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 0x3d
je 0x40453f
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
cmp eax, 0x44
jne 0x4046a3
cmp dword [ebp - 0x10], 0
jne 0x404550
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x404559
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, 0x28
sub ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00404b50
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4046a3
cmp dword [ebp - 0x10], 0
jne 0x40459d
mov edx, dword [ebp - 4]
add edx, dword [ebp - 8]
mov dword [ebp - 4], edx
jmp 0x4045a9
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
push 0x28
push 0
lea ecx, [ebp - 0x64]
push ecx
call fcn.004017c0
add esp, 0xc
lea edx, [ebp - 0x64]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov byte [eax], 0x3b
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x10], 0
jne 0x4045f3
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00401800
add esp, 0xc
jmp 0x40460f
push 0
push 0
push 0x28
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov byte [eax], 0x3f
lea ecx, [ebp - 0x64]
push ecx
mov edx, dword [0x4083c0]
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrA]
test eax, eax
jne 0x4046a3
mov eax, dword [ebp - 0xc]
add eax, 2
push eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.00404750
add esp, 8
mov edx, dword [ebp - 0xc]
add edx, 2
push edx
lea eax, [ebp - 0x64]
push eax
call fcn.004046e0
add esp, 8
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x28]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0x10], 0
jne 0x404683
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0xc]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0xc]
mov dword [ebp + 0xc], eax
jmp 0x40469c
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx*2]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 0xc]
shl ecx, 1
mov edx, dword [ebp + 0xc]
sub edx, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp - 0x20], 1
cmp dword [ebp - 0x20], 1
jne 0x4046b5
mov dword [ebp - 0x20], 0
jmp 0x404051
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
sub ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
jmp 0x404047
mov esp, ebp
pop ebp
ret