Function at 0x4bad30
Capabilities:
Parse credit card information

Disassembly:
sub esp, 0x18
push ebx
mov eax, ecx
mov dword [esp + 0x14], 0
push ebp
mov ebp, edx
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x34]
push esi
mov esi, dword [eax]
mov dword [esp + 0xc], esi
mov eax, dword [edx]
mov ebx, eax
push edi
cmp word [esi], 0x28
mov edi, dword [esp + 0x30]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
jne 0x4baf23
movzx eax, word [esi + 2]
cmp eax, 0x2a
jne 0x4bad84
add esi, 4
mov dword [esp + 0x10], esi
jmp 0x4baf23
cmp eax, 0x3f
je 0x4bada9
mov eax, ebx
inc eax
cmp dword [esp + 0x2c], 0
mov dword [edx], eax
jne 0x4bad9d
cmp eax, edi
je 0x4bb1ff
add esi, 2
mov dword [esp + 0x10], esi
jmp 0x4baf23
movzx eax, word [esi + 4]
lea ecx, [esi + 4]
cmp eax, 0x7c
jne 0x4badc9
add esi, 6
mov dword [esp + 0x20], 1
mov dword [esp + 0x10], esi
jmp 0x4baf23
cmp eax, 0x23
jne 0x4bae13
lea ecx, [esi + 6]
mov esi, ecx
mov dword [esp + 0x10], esi
movzx eax, word [esi]
test ax, ax
je 0x4bb1f6
mov edx, eax
cmp dx, 0x29
je 0x4bb1f6
lea esi, [ecx + 2]
mov dword [esp + 0x10], esi
mov ecx, esi
movzx eax, word [esi]
mov edx, eax
test ax, ax
jne 0x4bade5
mov eax, dword [esp + 0x24]
pop edi
mov dword [eax], esi
or eax, 0xffffffff
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov esi, ecx
mov dword [esp + 0x10], esi
cmp eax, 0x28
jne 0x4bae61
cmp word [esi + 2], 0x3f
je 0x4baf23
movzx eax, word [esi]
mov edx, eax
test ax, ax
je 0x4baf1f
cmp dx, 0x29
je 0x4bae55
lea esi, [ecx + 2]
mov dword [esp + 0x10], esi
mov ecx, esi
movzx eax, word [esi]
mov edx, eax
test ax, ax
jne 0x4bae37
jmp 0x4baf1f
add esi, 2
mov dword [esp + 0x10], esi
jmp 0x4baf1f
cmp word [esi], 0x50
jne 0x4bae6e
lea esi, [ecx + 2]
mov dword [esp + 0x10], esi
movzx eax, word [esi]
mov ecx, eax
cmp eax, 0x3c
jne 0x4bae8a
movzx eax, word [esi + 2]
cmp eax, 0x21
je 0x4baf23
cmp eax, 0x3d
jne 0x4bae93
cmp ecx, 0x27
jne 0x4baf23
mov ebp, ebx
inc ebp
cmp dword [esp + 0x2c], 0
mov dword [edx], ebp
jne 0x4baea3
cmp ebp, edi
je 0x4baf09
add esi, 2
mov edx, ecx
cmp edx, 0x3c
mov dword [esp + 0x10], esi
mov eax, 0x3e
mov edi, esi
cmove edx, eax
mov ecx, edi
movzx eax, word [esi]
cmp eax, edx
je 0x4baed2
add esi, 2
mov dword [esp + 0x10], esi
mov ecx, esi
movzx eax, word [esi]
cmp eax, edx
jne 0x4baec2
cmp dword [esp + 0x2c], 0
je 0x4baf17
mov eax, dword [esp + 0x30]
sub ecx, edi
sar ecx, 1
cmp eax, ecx
jne 0x4baf80
mov ebx, dword [esp + 0x2c]
mov edx, eax
test eax, eax
je 0x4baf09
movzx ecx, word [ebx]
lea ebx, [ebx + 2]
movzx eax, word [edi]
lea edi, [edi + 2]
dec edx
cmp cx, ax
jne 0x4baf13
test edx, edx
jne 0x4baef3
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x18
ret
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x3c]
cmp esi, dword [ebp + 0x1c]
jae 0x4bb1f6
movzx eax, word [esi]
mov ecx, dword [esp + 0x34]
cmp eax, 0x5c
jne 0x4baf84
add esi, 2
mov dword [esp + 0x10], esi
movzx eax, word [esi]
test ax, ax
je 0x4bb1f6
cmp eax, 0x51
jne 0x4bb07e
add esi, 2
mov dword [esp + 0x10], esi
mov ecx, esi
movzx eax, word [esi]
test ax, ax
je 0x4bb1f6
cmp eax, 0x5c
jne 0x4baf54
lea esi, [ecx + 2]
mov dword [esp + 0x10], esi
cmp word [esi], 0x45
jne 0x4baf54
jmp 0x4bb07e
mov edi, eax
jmp 0x4baf1b
cmp eax, 0x5b
jne 0x4bb09f
xor ebp, ebp
nop
movzx eax, word [esi + 2]
cmp eax, 0x5c
jne 0x4bafd4
cmp word [esi + 4], 0x45
lea edi, [esi + 4]
jne 0x4bafab
mov esi, edi
mov dword [esp + 0x10], esi
jmp 0x4baf90
mov edx, 3
mov ebx, 0x4f2e28
movzx ecx, word [edi]
lea edi, [edi + 2]
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
dec edx
cmp cx, ax
jne 0x4baffe
test edx, edx
jne 0x4bafb5
add esi, 8
mov dword [esp + 0x10], esi
jmp 0x4baf90
test ebp, ebp
jne 0x4bafe9
cmp eax, 0x5e
jne 0x4bafe9
add esi, 2
lea ebp, [eax - 0x5d]
mov dword [esp + 0x10], esi
jmp 0x4baf90
cmp eax, 0x5d
jne 0x4baffe
mov eax, dword [esp + 0x14]
test dword [eax + 0x4c], 0x2000000
jne 0x4baffe
add esi, 2
add esi, 2
mov dword [esp + 0x10], esi
movzx eax, word [esi]
cmp eax, 0x5d
je 0x4bb07a
mov ecx, eax
mov edx, esi
test cx, cx
je 0x4bb1fc
cmp cx, 0x5c
jne 0x4bb067
lea esi, [edx + 2]
mov dword [esp + 0x10], esi
movzx eax, word [esi]
test ax, ax
je 0x4bb1f6
cmp eax, 0x51
jne 0x4bb067
nop dword [eax + eax]
add esi, 2
mov dword [esp + 0x10], esi
mov ecx, esi
movzx eax, word [esi]
test ax, ax
je 0x4bb1f6
cmp eax, 0x5c
jne 0x4bb040
lea esi, [ecx + 2]
mov dword [esp + 0x10], esi
cmp word [esi], 0x45
jne 0x4bb040
add esi, 2
mov dword [esp + 0x10], esi
mov edx, esi
movzx eax, word [esi]
mov ecx, eax
cmp eax, 0x5d
jne 0x4bb011
mov ebp, dword [esp + 0x14]
add esi, 2
mov dword [esp + 0x10], esi
cmp esi, dword [ebp + 0x1c]
jae 0x4bb1f6
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x30]
jmp 0x4baf2c
test ecx, ecx
je 0x4bb18b
cmp eax, 0x23
jne 0x4bb18b
add esi, 2
mov dword [esp + 0x10], esi
movzx eax, word [esi]
test ax, ax
je 0x4bb180
mov ecx, esi
mov ebx, esi
mov edi, eax
nop dword [eax]
mov edx, dword [ebp + 0x60]
test edx, edx
je 0x4bb102
mov eax, dword [ebp + 0x1c]
lea edi, [ebp + 0x64]
cmp ecx, eax
jae 0x4bb0fa
push 1
push edi
push eax
mov ecx, esi
call fcn.004cbf80
add esp, 0xc
test eax, eax
je 0x4bb0fa
mov eax, 1
jmp 0x4bb0fc
xor eax, eax
test eax, eax
jne 0x4bb174
jmp 0x4bb130
mov edx, dword [ebp + 0x64]
mov ecx, dword [esp + 0x14]
lea eax, [edx + edx]
mov ecx, dword [ecx + 0x1c]
sub ecx, eax
cmp ebx, ecx
ja 0x4bb169
mov ecx, dword [esp + 0x14]
cmp di, word [ecx + 0x68]
jne 0x4bb12e
cmp edx, 1
je 0x4bb16f
mov ax, word [esi + 2]
cmp ax, word [ecx + 0x6a]
je 0x4bb16f
mov ebp, ecx
add esi, 2
mov edx, 0xfc00
mov dword [esp + 0x10], esi
mov ecx, esi
mov ax, word [esi]
and ax, dx
mov edx, 0xdc00
cmp ax, dx
jne 0x4bb157
lea esi, [ecx + 2]
mov dword [esp + 0x10], esi
mov ecx, esi
movzx eax, word [esi]
mov ebx, ecx
mov edi, eax
test ax, ax
jne 0x4bb0d0
jmp 0x4bb180
mov ebp, dword [esp + 0x14]
jmp 0x4bb130
lea edi, [ebp + 0x64]
mov ebp, ecx
mov eax, dword [edi]
lea esi, [esi + eax*2]
add esi, 0xfffffffe
mov dword [esp + 0x10], esi
cmp word [esi], 0
je 0x4bb1f6
jmp 0x4bb07e
cmp eax, 0x28
jne 0x4bb1ba
push edx
push 1
push ecx
push edi
push dword [esp + 0x3c]
mov edx, ebp
lea ecx, [esp + 0x24]
call fcn.004bad30
add esp, 0x14
test eax, eax
jg 0x4bb1ff
mov esi, dword [esp + 0x10]
cmp word [esi], 0
je 0x4bb1f6
jmp 0x4bb07e
cmp eax, 0x29
je 0x4bb1e9
cmp eax, 0x7c
jne 0x4bb07e
cmp dword [esp + 0x20], 0
je 0x4bb07e
mov eax, dword [edx]
cmp eax, ebx
mov ecx, dword [esp + 0x18]
cmovle eax, ebx
mov dword [edx], ecx
mov dword [esp + 0x1c], eax
jmp 0x4bb07e
cmp dword [esp + 0x20], 0
je 0x4bb1f6
cmp dword [edx], ebx
jge 0x4bb1f6
mov dword [edx], ebx
mov eax, dword [esp + 0x24]
mov dword [eax], esi
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret