Function at 0x40bea0
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 1], 3
mov ecx, dword [ebp + 0xc]
mov ebx, 0
mov eax, ecx
xorps xmm0, xmm0
and eax, 0x100
movq qword [ebp - 0x34], xmm0
mov dword [ebp - 0x2c], eax
mov esi, edx
setne bl
mov eax, ecx
shr eax, 0xc
not al
and eax, 0xffffff01
mov dword [ebp - 0x1c], eax
lea ebx, [ebx*2 + 2]
mov eax, ecx
shr eax, 0xd
not al
and eax, 0xffffff01
cmp byte [0x45749a], 0
mov dword [ebp - 0x20], eax
jne 0x40bf08
call fcn.0040b780
test al, al
je 0x40bf3f
mov ecx, dword [ebp + 0xc]
push ecx
push ecx
push esi
mov edx, edi
lea ecx, [ebp - 0x34]
call fcn.0040baf0
add esp, 0xc
test al, al
je 0x40bf3f
cmp dword [ebp - 0x30], 0
je 0x40bf3f
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
imul eax, ebx
add esi, eax
cmp dword [ebp + 0x14], esi
jbe 0x40bf48
mov eax, dword [ebp + 8]
mov byte [ebp - 1], 1
mov esi, dword [eax]
test esi, esi
jne 0x40bf69
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi*2 + 2]
push eax
push 0
push dword [0x45764c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov eax, dword [ebp + 8]
mov dword [eax], esi
test esi, esi
je 0x40bf3f
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebx]
sub eax, edi
and eax, 0xfffffffe
push eax
push edi
push esi
call fcn.0043c9e0
mov ecx, dword [ebx]
add esp, 0xc
mov eax, ecx
sub eax, edi
mov edi, ebx
sar eax, 1
cmp dword [ebp - 0x34], 0
lea esi, [esi + eax*2]
mov dword [ebp - 0xc], esi
je 0x40c5db
nop dword [eax + eax]
mov eax, dword [str._24_]
add edi, 4
mov ebx, dword [0x4574b8]
mov edx, 2
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x14], 4
mov edi, dword [edi]
sub edi, ecx
mov dword [esi], eax
mov eax, dword [0x445434]
sar edi, 1
mov dword [esi + 4], eax
cmp word [ecx], 0x25
mov byte [ebp - 8], 0
jne 0x40c026
movzx eax, word [ecx + 2]
cmp eax, 0x32
jne 0x40bfe5
lea edx, [eax - 0x2e]
jmp 0x40c026
movzx edx, word [ecx + 0xe]
cmp edx, 0x44
je 0x40c021
cmp edx, 0x64
je 0x40c021
cmp eax, 0x57
je 0x40c002
mov edx, 0xc
cmp eax, 0x77
jne 0x40c007
mov edx, 8
mov eax, dword [str._10_]
mov ebx, dword [0x4574b8]
mov dword [esi], eax
add ebx, 0x20
mov eax, dword [0x445440]
mov dword [esi + 4], eax
jmp 0x40c026
mov edx, 0xd
lea esi, [ecx + edx*2]
sub edi, edx
mov edx, esi
mov dword [ebp - 0x10], edx
je 0x40c59b
movzx eax, word [esi]
cmp eax, 0x5c
je 0x40c047
cmp eax, 0x2f
jne 0x40c59b
movzx eax, word [esi]
cmp eax, 0x5c
je 0x40c054
cmp eax, 0x2f
jne 0x40c061
add esi, 2
sub edi, 1
jne 0x40c047
jmp 0x40c59b
test edi, edi
je 0x40c59b
nop dword [eax]
movzx ecx, byte [ebx + 4]
cmp edi, ecx
jb 0x40c559
mov eax, dword [ebx]
add ecx, ecx
push 1
push 0x456410
push 0x456418
mov dword [0x45641c], esi
mov dword [0x456414], eax
mov word [0x456410], cx
mov word [0x456418], cx
call dword [0x457674]
movzx eax, al
test eax, eax
je 0x40c559
movzx eax, byte [ebx + 4]
sub edi, eax
lea esi, [esi + eax*2]
mov al, byte [ebx + 5]
cmp al, 0x28
jne 0x40c401
test edi, edi
je 0x40c598
movzx eax, word [esi]
cmp eax, 0x5c
je 0x40c0e3
cmp eax, 0x2f
jne 0x40c598
movzx eax, word [esi]
cmp eax, 0x5c
je 0x40c0f0
cmp eax, 0x2f
jne 0x40c0f8
add esi, 2
sub edi, 1
jne 0x40c0e3
movzx eax, word [ebx + 0xa]
shl eax, 4
add ebx, eax
mov dword [ebp - 0x24], ebx
movzx ecx, byte [ebx + 4]
cmp edi, ecx
jb 0x40c154
mov eax, dword [ebx]
add ecx, ecx
push 1
push 0x456410
push 0x456418
mov dword [0x45641c], esi
mov dword [0x456414], eax
mov word [0x456410], cx
mov word [0x456418], cx
call dword [0x457674]
movzx eax, al
test eax, eax
je 0x40c154
movzx eax, byte [ebx + 4]
sub edi, eax
mov byte [ebp - 8], 1
lea esi, [esi + eax*2]
jmp 0x40c524
mov ebx, dword [0x45761c]
cmp edi, ebx
jb 0x40c1b6
mov eax, dword [0x457678]
add ebx, ebx
mov dword [0x456414], eax
cmp ebx, 0xfffe
mov ecx, 0xfffe
movzx eax, bx
cmova eax, ecx
mov dword [0x45641c], esi
movzx eax, ax
mov word [0x456410], ax
mov word [0x456418], ax
cmp ax, cx
jae 0x40c250
push 1
push 0x456410
push 0x456418
call dword [0x457674]
movzx eax, al
test eax, eax
jne 0x40c2b4
cmp byte [ebp - 0x1c], 0
je 0x40c2fe
cmp edi, 0xc
jbe 0x40c2fe
push 1
mov eax, 0x1a
mov dword [0x45641c], esi
push 0x456410
push 0x456418
mov dword [0x456414], 0x445f60
mov word [0x456410], ax
mov word [0x456418], ax
call dword [0x457674]
movzx eax, al
test eax, eax
je 0x40c2fe
lea ebx, [esi + 0x1a]
cmp edi, 0xd
je 0x40c23d
push 0x457628
push 1
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
test eax, eax
je 0x40c233
test dword [0x457628], 0x104
jne 0x40c2fe
cmp word [ebx], 0x5f
je 0x40c2fe
sub edi, 0xd
mov esi, ebx
jmp 0x40c39a
push 1
push 0x456410
push 0x456418
call dword [0x457674]
test al, al
je 0x40c1b6
movzx edx, word [0x456418]
mov eax, dword [0x45641c]
mov ecx, edx
shr ecx, 1
sub ebx, edx
lea eax, [eax + ecx*2]
movzx ecx, word [0x456410]
mov dword [0x45641c], eax
mov eax, dword [0x456414]
shr ecx, 1
lea eax, [eax + ecx*2]
mov dword [0x456414], eax
cmp ebx, 0xfffe
jae 0x40c2b0
mov word [0x456410], bx
mov word [0x456418], bx
test ebx, ebx
jne 0x40c250
mov eax, dword [0x45761c]
cmp edi, eax
je 0x40c2f4
push 0x457628
push 1
lea eax, [esi + eax*2]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
test eax, eax
je 0x40c2e4
test dword [0x457628], 0x104
jne 0x40c1b6
mov eax, dword [0x45761c]
cmp word [esi + eax*2], 0x5f
je 0x40c1b6
sub edi, eax
lea esi, [esi + eax*2]
jmp 0x40c39a
cmp byte [ebp - 0x20], 0
je 0x40c598
cmp word [esi], 0x2d
mov ebx, dword [sym.imp.KERNEL32.dll_GetStringTypeW]
je 0x40c338
push 0x457628
push 1
push esi
push 1
call ebx
test eax, eax
je 0x40c598
test dword [0x457628], 0x104
je 0x40c598
test edi, edi
je 0x40c39a
nop dword [eax]
cmp word [esi], 0x2d
je 0x40c36c
push 0x457628
push 1
push esi
push 1
call ebx
test eax, eax
je 0x40c362
test dword [0x457628], 0x104
jne 0x40c36c
add esi, 2
sub edi, 1
jne 0x40c340
jmp 0x40c39a
test edi, edi
je 0x40c39a
push 0x457628
push 1
push esi
push 1
call ebx
test eax, eax
je 0x40c390
test dword [0x457628], 0x104
jne 0x40c598
cmp word [esi], 0x5f
je 0x40c598
mov ecx, dword [ebp - 0xc]
movq xmm0, qword [str._16424_]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x10], esi
movq qword [ecx], xmm0
mov eax, dword [0x445f84]
mov dword [ecx + 8], eax
mov ax, word [0x445f88]
mov word [ecx + 0xc], ax
test edi, edi
je 0x40c598
movzx eax, word [esi]
cmp eax, 0x5c
je 0x40c3e0
cmp eax, 0x2f
jne 0x40c598
nop
movzx eax, word [esi]
cmp eax, 0x5c
je 0x40c3ed
cmp eax, 0x2f
jne 0x40c3f5
add esi, 2
sub edi, 1
jne 0x40c3e0
mov ebx, dword [ebp - 0x24]
movzx eax, byte [ebx + 9]
jmp 0x40c58b
mov edx, dword [ebp - 8]
test dl, dl
jne 0x40c4a1
cmp al, 0x26
je 0x40c414
cmp al, 0x2b
jne 0x40c490
cmp edi, 5
jbe 0x40c490
push 1
mov eax, 0xc
mov dword [0x45641c], esi
push 0x456410
push 0x456418
mov dword [0x456414], 0x445f8c
mov word [0x456410], ax
mov word [0x456418], ax
call dword [0x457674]
movzx eax, al
test eax, eax
je 0x40c48d
add esi, 0xc
sub edi, 6
je 0x40c487
push 0x457628
push 1
push esi
push 1
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
test eax, eax
je 0x40c47b
test dword [0x457628], 0x104
jne 0x40c481
cmp word [esi], 0x5f
jne 0x40c487
mov byte [ebp - 8], 0
jmp 0x40c4a1
mov byte [ebp - 8], 1
jmp 0x40c4a1
mov edx, dword [ebp - 8]
mov cl, byte [ebx + 7]
test cl, cl
movzx edx, dl
movzx eax, cl
cmovne edx, eax
mov dword [ebp - 8], edx
test edi, edi
je 0x40c4d3
push 0x457628
push 1
push esi
push 1
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
test eax, eax
je 0x40c4c9
test dword [0x457628], 0x104
jne 0x40c590
cmp word [esi], 0x5f
je 0x40c590
cmp byte [ebx + 8], 0
je 0x40c524
test byte [ebp + 0xc], 1
je 0x40c4f5
mov al, byte [ebx + 5]
cmp al, 0x42
je 0x40c4ee
cmp al, 0x26
je 0x40c4ee
cmp al, 0x2b
jne 0x40c4f5
mov al, 1
mov dword [ebp - 8], eax
jmp 0x40c4f8
mov eax, dword [ebp - 8]
movzx eax, al
movzx eax, byte [eax + ebx + 5]
lea ecx, [eax + eax*4]
mov eax, dword [0x4574b4]
lea ecx, [eax + ecx*4]
movzx eax, word [ecx + 0x10]
mov dword [ebp - 0x14], eax
add eax, eax
push eax
push ecx
push dword [ebp - 0xc]
call fcn.0043c9e0
add esp, 0xc
mov dword [ebp - 0x10], esi
test edi, edi
je 0x40c598
movzx eax, word [esi]
cmp eax, 0x5c
je 0x40c535
cmp eax, 0x2f
jne 0x40c598
movzx ecx, word [ebx + 0xa]
test cx, cx
je 0x40c598
nop
movzx eax, word [esi]
cmp eax, 0x5c
je 0x40c54d
cmp eax, 0x2f
jne 0x40c555
add esi, 2
sub edi, 1
jne 0x40c540
mov eax, ecx
jmp 0x40c58b
mov al, byte [ebx + 9]
test al, al
je 0x40c598
cmp byte [ebp - 8], 0
je 0x40c588
cmp dword [0x4574b0], ebx
jne 0x40c57b
mov eax, dword [0x4574b8]
lea ebx, [eax + 0xe50]
jmp 0x40c590
cmp dword [0x4574ac], ebx
jne 0x40c588
add ebx, 0x40
jmp 0x40c590
movzx eax, al
shl eax, 4
add ebx, eax
test edi, edi
jne 0x40c070
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
lea esi, [esi + ebx*2]
mov ecx, dword [edi]
mov dword [ebp - 0xc], esi
cmp edx, ecx
je 0x40c5cf
sub ecx, edx
and ecx, 0xfffffffe
push ecx
push edx
push esi
call fcn.0043c9e0
mov ecx, dword [edi]
add esp, 0xc
mov eax, ecx
sub eax, dword [ebp - 0x10]
sar eax, 1
lea esi, [esi + eax*2]
mov dword [ebp - 0xc], esi
sub dword [ebp - 0x18], 1
jne 0x40bfa0
jmp 0x40c5dd
xor ebx, ebx
push dword [ebp - 0x30]
push 0
push dword [0x45764c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [ebp + 8]
xor eax, eax
mov word [esi], ax
mov ecx, dword [edi]
sub esi, ecx
sar esi, 1
mov dword [0x457634], esi
cmp word [ebp - 0x2c], ax
je 0x40c656
lea eax, [ebx + ebx]
push eax
lea eax, [ecx + 2]
push eax
push ecx
call fcn.00429d30
mov edx, dword [edi]
add esp, 0xc
mov eax, dword [0x445f9c]
mov ecx, dword [0x457634]
mov dword [edx + ebx*2 - 4], eax
mov ax, word [0x445fa0]
mov word [edx + ebx*2], ax
cmp ebx, ecx
je 0x40c647
movzx eax, word [edx + ecx*2 - 2]
cmp eax, 0x5c
je 0x40c64e
cmp eax, 0x2f
je 0x40c64e
inc ecx
mov dword [0x457634], ecx
mov dword [edx + ecx*2 - 2], 0x22
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret