Function at 0x408526
Capabilities:
Parse credit card information

Disassembly:
sub esp, 0x348
mov eax, dword [0x473ff0]
xor eax, esp
mov dword [esp + 0x344], eax
mov eax, dword [edx + 8]
push ebx
push ebp
push esi
xor esi, esi
push edi
mov edi, ecx
mov dword [edi + 4], eax
mov dword [edi + 0xc], esi
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0xc]
lea ecx, [ecx + eax*2]
mov dword [esp + 0x1c], eax
movzx eax, word [ecx]
or ebx, 0xffffffff
xor ebp, ebp
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x18], ecx
test ax, ax
jne 0x408518
mov dword [edi + 8], esi
mov dword [edi], esi
lea eax, [esi - 2]
jmp 0x408b01
movzx edi, ax
test edi, edi
je 0x408807
test esi, esi
je 0x408591
push edi
push 0x46a1a4
call fcn.00444c6c
add esp, 8
test eax, eax
je 0x4087ef
mov edx, dword [esp + 0x24]
mov ecx, dword [edx + 0xc]
mov edx, dword [esp + 0x18]
mov eax, edx
sub eax, ecx
sar eax, 1
sub eax, esi
test ebx, ebx
jne 0x40856d
mov ecx, dword [esp + 0x24]
lea eax, [eax + esi - 1]
mov dword [ecx], esi
xor esi, esi
mov dword [ecx + 4], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
jmp 0x408599
push eax
lea eax, [ecx + esi*2]
mov esi, dword [esp + 0x24]
add esi, 0x10
call fcn.004011a0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
xor esi, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
jmp 0x408599
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
cmp dword [esp + 0x14], 0
je 0x4087a9
cmp edi, 0x3e
jne 0x40865b
mov eax, dword [esp + 0x10]
test al, 0xc0
jne 0x408676
sub edx, dword [ecx + 0xc]
sar edx, 1
mov dword [esp + 0x1c], edx
cmp ebp, 1
jne 0x408608
mov dword [esp + 0x14], 0
cmp ebx, ebp
jne 0x40864e
cmp dword [esp + 0x28], 0x2f
jne 0x40864e
cmp dword [esp + 0x2c], 0
je 0x4085fb
mov ecx, dword [esp + 0x2c]
push ecx
push 0x46a1b4
call fcn.00444c6c
add esp, 8
test eax, eax
mov eax, dword [esp + 0x10]
je 0x40864e
mov ecx, dword [esp + 0x20]
or dword [ecx + 0xc], 0x10000
jmp 0x40864e
cmp edx, ebp
jle 0x4087ef
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea edx, [ebp + ebp]
sub eax, edx
add eax, 2
mov dword [esp + 0x30], ebp
sub ecx, eax
sub dword [esp + 0x30], 1
je 0x408642
mov dx, word [eax]
mov di, word [ecx + eax]
add eax, 2
cmp dx, di
je 0x408627
jmp 0x4087ef
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], 0
test al, 0x20
je 0x408ae7
jmp 0x4087ef
cmp edi, 0x3c
jne 0x408672
cmp ebx, 2
je 0x408bb8
cmp ebx, 0xffffffff
je 0x408bb8
mov eax, dword [esp + 0x10]
test bl, 1
je 0x40877e
test al, 0xc0
je 0x4086d3
cmp edi, 0x22
jne 0x4086aa
test al, al
jns 0x408770
xor eax, 0x80
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edi
jmp 0x4087ef
cmp edi, 0x27
jne 0x408770
test al, 0x40
je 0x408770
xor eax, 0x40
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edi
jmp 0x4087ef
cmp edi, 0x22
jne 0x4086fd
test eax, 0x100
je 0x408770
xor eax, 0x180
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edi
jmp 0x4087ef
cmp edi, 0x27
jne 0x408723
test eax, 0x100
je 0x408770
xor eax, 0x140
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edi
jmp 0x4087ef
cmp edi, 0x3d
jne 0x40874f
cmp dword [esp + 0x28], edi
je 0x40874f
test eax, 0x100
jne 0x408756
xor eax, 0x100
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edi
jmp 0x4087ef
test eax, 0x100
je 0x408770
push edi
push 0x46a098
call fcn.00444c6c
add esp, 8
test eax, eax
jne 0x408770
xor dword [esp + 0x10], 0x100
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edi
jmp 0x4087ef
test bl, 0x40
je 0x4087ef
cmp edi, 0x22
jne 0x408797
test al, 0x40
jne 0x4087ef
xor eax, 0x80
mov dword [esp + 0x10], eax
jmp 0x4087ef
cmp edi, 0x27
jne 0x4087ef
test al, al
js 0x4087ef
xor eax, 0x40
mov dword [esp + 0x10], eax
jmp 0x4087ef
mov eax, dword [esp + 0x10]
test eax, eax
je 0x408b1a
test al, 0x10
je 0x40884f
cmp edi, 0x3c
je 0x408bc7
push edi
push 0x46a098
call fcn.00444c6c
add esp, 8
test eax, eax
jne 0x4087ef
xor dword [esp + 0x10], 0x10
mov ebx, 2
mov dword [esp + 0x14], 0x46a1c4
mov ebp, 1
add dword [esp + 0x18], 2
mov ecx, dword [esp + 0x18]
movzx edi, word [ecx]
test edi, edi
jne 0x408523
mov edx, dword [esp + 0x24]
sub ecx, dword [edx + 0xc]
sar ecx, 1
dec ecx
mov dword [esp + 0x1c], ecx
cmp ebx, 4
je 0x408ae7
cmp ebx, 2
je 0x408ae7
test byte [esp + 0x10], 0x20
mov eax, 0x46a0bc
jne 0x408b83
cmp ebx, 0x40
je 0x408b83
cmp ebx, 1
jne 0x408b54
mov eax, 0x46a0d4
jmp 0x408b88
test al, 1
je 0x408937
xor eax, 1
mov dword [esp + 0x10], eax
cmp edi, 0x60
ja 0x40891c
cmp edi, 0x40
jbe 0x408875
cmp edi, 0x5b
jb 0x40891c
cmp edi, 0x5f
je 0x40891c
cmp edi, 0x3a
je 0x40891c
cmp edi, 0x2f
jne 0x4088a3
mov esi, edx
sub esi, dword [ecx + 0xc]
xor ebx, ebx
sar esi, 1
mov dword [esp + 0x14], 0x46a1c8
inc esi
jmp 0x4087ea
cmp edi, 0x21
jne 0x4088b4
or eax, 2
mov dword [esp + 0x10], eax
jmp 0x4087ef
cmp edi, 0x3f
jne 0x4088d4
mov esi, edx
sub esi, dword [ecx + 0xc]
mov dword [esp + 0x14], 0x469ee0
sar esi, 1
lea ebp, [edi - 0x3d]
lea ebx, [edi - 0x2f]
inc esi
jmp 0x4087ef
mov ecx, dword [esp + 0x1c]
push ecx
push 0x46a1cc
lea edx, [esp + 0x104]
push 0x46a1f4
push edx
mov dword [esp + 0x24], 0x46a1c8
mov ebp, 1
call fcn.00444bd4
mov eax, dword [esp + 0x30]
add eax, 0x10
add esp, 0x10
push eax
lea eax, [esp + 0x100]
call fcn.00402540
or ebx, 0xffffffff
jmp 0x4087ef
mov esi, edx
sub esi, dword [ecx + 0xc]
mov ebp, 1
mov dword [esp + 0x14], 0x46a1c8
mov ebx, ebp
sar esi, 1
jmp 0x4087ef
test al, 2
je 0x4089e3
xor eax, 2
mov dword [esp + 0x10], eax
cmp edi, 0x2d
jne 0x408957
or eax, 4
mov dword [esp + 0x10], eax
jmp 0x4087ef
cmp edi, 0x5b
jne 0x40896c
test al, 0x20
jne 0x408981
or eax, 8
mov dword [esp + 0x10], eax
jmp 0x4087ef
cmp edi, 0x44
jne 0x408981
test al, 0x20
jne 0x408981
or eax, 0x20
mov dword [esp + 0x10], eax
jmp 0x4087ef
push edi
push 0x46a228
call fcn.00444c6c
add esp, 8
mov dword [esp + 0x14], 0x46a1c8
mov ebp, 1
test eax, eax
je 0x4089a8
lea ebx, [ebp + 0x3f]
jmp 0x4087ef
mov ecx, dword [esp + 0x1c]
push ecx
push 0x46a230
lea edx, [esp + 0x294]
push 0x46a1f4
push edx
call fcn.00444bd4
mov eax, dword [esp + 0x30]
add eax, 0x10
add esp, 0x10
push eax
lea eax, [esp + 0x290]
call fcn.00402540
or ebx, 0xffffffff
jmp 0x4087ef
test al, 4
je 0x408a4e
xor eax, 4
mov dword [esp + 0x10], eax
cmp edi, 0x2d
jne 0x408a06
mov dword [esp + 0x14], 0x46a23c
lea ebp, [edi - 0x2a]
lea ebx, [edi - 0xd]
jmp 0x4087ef
mov ecx, dword [esp + 0x1c]
push ecx
push 0x46a244
lea edx, [esp + 0x1cc]
push 0x46a1f4
push edx
mov dword [esp + 0x24], 0x46a1c8
mov ebp, 1
call fcn.00444bd4
mov eax, dword [esp + 0x30]
add eax, 0x10
add esp, 0x10
push eax
lea eax, [esp + 0x1c8]
call fcn.00402540
or ebx, 0xffffffff
jmp 0x4087ef
test al, 8
je 0x408ab3
xor eax, 8
mov dword [esp + 0x10], eax
cmp edi, 0x43
jne 0x408a71
mov dword [esp + 0x14], 0x46a25c
lea ebp, [edi - 0x40]
lea ebx, [edi - 0x3b]
jmp 0x4087ef
mov ecx, dword [esp + 0x1c]
push ecx
push 0x46a0bc
lea edx, [esp + 0x3c]
push 0x46a1f4
push edx
mov dword [esp + 0x24], 0x46a1c8
mov ebp, 1
call fcn.00444bd4
mov eax, dword [esp + 0x30]
add eax, 0x10
add esp, 0x10
push eax
lea eax, [esp + 0x38]
call fcn.00402540
or ebx, 0xffffffff
jmp 0x4087ef
test al, 0x20
je 0x4087ef
cmp edi, 0x3c
jne 0x408aca
or dword [esp + 0x10], 1
jmp 0x4087ef
cmp edi, 0x3e
jne 0x4087ef
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
sub eax, dword [ecx + 0xc]
lea ebx, [edi + 2]
sar eax, 1
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
inc eax
mov dword [edx + 8], eax
sub eax, dword [ecx + 4]
mov dword [ecx], ebx
mov dword [ecx + 8], eax
mov eax, ebx
mov ecx, dword [esp + 0x354]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004437f0
add esp, 0x348
ret
cmp edi, 0x3c
jne 0x408b2c
mov dword [esp + 0x10], 1
jmp 0x4087ef
push edi
push 0x46a098
mov ebx, 4
call fcn.00444c6c
add esp, 8
test eax, eax
je 0x4087dd
mov dword [esp + 0x10], 0x10
jmp 0x4087ef
test ebx, ebx
jne 0x408b5f
mov eax, 0x46a0ec
jmp 0x408b88
cmp ebx, 8
jne 0x408b6b
mov eax, 0x46a10c
jmp 0x408b88
cmp ebx, 0x10
jne 0x408b77
mov eax, 0x46a128
jmp 0x408b88
cmp ebx, 0x20
jne 0x408b88
mov eax, 0x46a158
jmp 0x408b88
mov eax, 0x46a0c4
mov esi, dword [esp + 0x20]
mov edx, dword [esi + 4]
push edx
push eax
lea eax, [esp + 0x3c]
push 0x46a168
push eax
or ebx, 0xffffffff
call fcn.00444bd4
add esp, 0x10
add esi, 0x10
push esi
lea eax, [esp + 0x38]
call fcn.00402540
jmp 0x408ae7
sub edx, dword [ecx + 0xc]
sar edx, 1
dec edx
mov dword [esp + 0x1c], edx
jmp 0x408ae7
sub edx, dword [ecx + 0xc]
mov ebx, 4
sar edx, 1
dec edx
mov dword [esp + 0x1c], edx
jmp 0x408ae7