Function at 0x499be0
Capabilities:
Parse credit card information

Disassembly:
sub esp, 0x348
mov eax, dword [0x52b360]
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 0x499c48
mov dword [edi + 8], esi
mov dword [edi], esi
lea eax, [esi - 2]
jmp 0x49a230
movzx edi, ax
test edi, edi
je 0x499f3a
test esi, esi
je 0x499cc2
push edi
push str.__t_n_r__
call fcn.004c950c
add esp, 8
test eax, eax
je 0x499f20
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 0x499c9d
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 0x499cca
lea ecx, [ecx + esi*2]
mov esi, dword [esp + 0x20]
push eax
push ecx
add esi, 0x10
call fcn.00401760
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
xor esi, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
jmp 0x499cca
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
cmp dword [esp + 0x14], 0
je 0x499eda
cmp edi, 0x3e
jne 0x499d8c
mov eax, dword [esp + 0x10]
test al, 0xc0
jne 0x499da7
sub edx, dword [ecx + 0xc]
sar edx, 1
mov dword [esp + 0x1c], edx
cmp ebp, 1
jne 0x499d39
mov dword [esp + 0x14], 0
cmp ebx, ebp
jne 0x499d7f
cmp dword [esp + 0x28], 0x2f
jne 0x499d7f
cmp dword [esp + 0x2c], 0
je 0x499d2c
mov edx, dword [esp + 0x2c]
push edx
push 0x50f644
call fcn.004c950c
add esp, 8
test eax, eax
mov eax, dword [esp + 0x10]
je 0x499d7f
mov ecx, dword [esp + 0x20]
or dword [ecx + 0xc], 0x10000
jmp 0x499d7f
cmp edx, ebp
jle 0x499f20
mov ecx, dword [esp + 0x18]
lea eax, [ebp + ebp]
sub ecx, eax
lea eax, [ecx + 2]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x30], ebp
sub ecx, eax
sub dword [esp + 0x30], 1
je 0x499d73
mov dx, word [eax]
mov di, word [ecx + eax]
add eax, 2
cmp dx, di
je 0x499d58
jmp 0x499f20
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], 0
test al, 0x20
je 0x49a216
jmp 0x499f20
cmp edi, 0x3c
jne 0x499da3
cmp ebx, 2
je 0x49a2e6
cmp ebx, 0xffffffff
je 0x49a2e6
mov eax, dword [esp + 0x10]
test bl, 1
je 0x499eaf
test al, 0xc0
je 0x499e04
cmp edi, 0x22
jne 0x499ddb
test al, al
jns 0x499ea1
xor eax, 0x80
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edi
jmp 0x499f20
cmp edi, 0x27
jne 0x499ea1
test al, 0x40
je 0x499ea1
xor eax, 0x40
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edi
jmp 0x499f20
cmp edi, 0x22
jne 0x499e2e
test eax, 0x100
je 0x499ea1
xor eax, 0x180
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edi
jmp 0x499f20
cmp edi, 0x27
jne 0x499e54
test eax, 0x100
je 0x499ea1
xor eax, 0x140
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edi
jmp 0x499f20
cmp edi, 0x3d
jne 0x499e80
cmp dword [esp + 0x28], edi
je 0x499e80
test eax, 0x100
jne 0x499e87
xor eax, 0x100
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edi
jmp 0x499f20
test eax, 0x100
je 0x499ea1
push edi
push str.__t_n_r
call fcn.004c950c
add esp, 8
test eax, eax
jne 0x499ea1
xor dword [esp + 0x10], 0x100
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edi
jmp 0x499f20
test bl, 0x40
je 0x499f20
cmp edi, 0x22
jne 0x499ec8
test al, 0x40
jne 0x499f20
xor eax, 0x80
mov dword [esp + 0x10], eax
jmp 0x499f20
cmp edi, 0x27
jne 0x499f20
test al, al
js 0x499f20
xor eax, 0x40
mov dword [esp + 0x10], eax
jmp 0x499f20
mov eax, dword [esp + 0x10]
test eax, eax
je 0x49a249
test al, 0x10
je 0x499f82
cmp edi, 0x3c
je 0x49a2f5
push edi
push str.__t_n_r
call fcn.004c950c
add esp, 8
test eax, eax
jne 0x499f20
xor dword [esp + 0x10], 0x10
mov ebx, 2
mov dword [esp + 0x14], 0x50f654
mov ebp, 1
add dword [esp + 0x18], 2
mov eax, dword [esp + 0x18]
movzx edi, word [eax]
test edi, edi
jne 0x499c53
mov edx, dword [esp + 0x24]
mov ecx, eax
sub ecx, dword [edx + 0xc]
sar ecx, 1
dec ecx
mov dword [esp + 0x1c], ecx
cmp ebx, 4
je 0x49a216
cmp ebx, 2
je 0x49a216
test byte [esp + 0x10], 0x20
mov eax, 0x50f54c
jne 0x49a2b2
cmp ebx, 0x40
je 0x49a2b2
cmp ebx, 1
jne 0x49a283
mov eax, str.Element_tag
jmp 0x49a2b7
test al, 1
je 0x49a069
xor eax, 1
mov dword [esp + 0x10], eax
cmp edi, 0x60
ja 0x49a04e
cmp edi, 0x40
jbe 0x499fa8
cmp edi, 0x5b
jb 0x49a04e
cmp edi, 0x5f
je 0x49a04e
cmp edi, 0x3a
je 0x49a04e
cmp edi, 0x2f
jne 0x499fd6
mov esi, edx
sub esi, dword [ecx + 0xc]
xor ebx, ebx
sar esi, 1
mov dword [esp + 0x14], 0x50f658
inc esi
jmp 0x499f1b
cmp edi, 0x21
jne 0x499fe7
or eax, 2
mov dword [esp + 0x10], eax
jmp 0x499f20
cmp edi, 0x3f
jne 0x49a007
mov esi, edx
sub esi, dword [ecx + 0xc]
mov dword [esp + 0x14], 0x50f30c
sar esi, 1
lea ebp, [edi - 0x3d]
lea ebx, [edi - 0x2f]
inc esi
jmp 0x499f20
mov ecx, dword [esp + 0x1c]
push ecx
push 0x50f65c
push str.Incorrect__s_at_offset__d
lea edx, [esp + 0x108]
mov dword [esp + 0x20], 0x50f658
mov ebp, 1
call fcn.0049aa70
mov edx, dword [esp + 0x2c]
add edx, 0x10
add esp, 0xc
push edx
lea edx, [esp + 0x100]
call fcn.00401720
or ebx, 0xffffffff
jmp 0x499f20
mov esi, edx
sub esi, dword [ecx + 0xc]
mov ebp, 1
mov dword [esp + 0x14], 0x50f658
mov ebx, ebp
sar esi, 1
jmp 0x499f20
test al, 2
je 0x49a114
xor eax, 2
mov dword [esp + 0x10], eax
cmp edi, 0x2d
jne 0x49a089
or eax, 4
mov dword [esp + 0x10], eax
jmp 0x499f20
cmp edi, 0x5b
jne 0x49a09e
test al, 0x20
jne 0x49a0b3
or eax, 8
mov dword [esp + 0x10], eax
jmp 0x499f20
cmp edi, 0x44
jne 0x49a0b3
test al, 0x20
jne 0x49a0b3
or eax, 0x20
mov dword [esp + 0x10], eax
jmp 0x499f20
push edi
push 0x50f6b8
call fcn.004c950c
add esp, 8
mov dword [esp + 0x14], 0x50f658
mov ebp, 1
test eax, eax
je 0x49a0da
lea ebx, [ebp + 0x3f]
jmp 0x499f20
mov eax, dword [esp + 0x1c]
push eax
push str.__tag
push str.Incorrect__s_at_offset__d
lea edx, [esp + 0x298]
call fcn.0049aa70
mov ecx, dword [esp + 0x2c]
add esp, 0xc
add ecx, 0x10
push ecx
lea edx, [esp + 0x290]
call fcn.00401720
or ebx, 0xffffffff
jmp 0x499f20
test al, 4
je 0x49a17e
xor eax, 4
mov dword [esp + 0x10], eax
cmp edi, 0x2d
jne 0x49a137
mov dword [esp + 0x14], 0x50f6cc
lea ebp, [edi - 0x2a]
lea ebx, [edi - 0xd]
jmp 0x499f20
mov edx, dword [esp + 0x1c]
push edx
push str.comment_tag
push str.Incorrect__s_at_offset__d
lea edx, [esp + 0x1d0]
mov dword [esp + 0x20], 0x50f658
mov ebp, 1
call fcn.0049aa70
mov eax, dword [esp + 0x2c]
add esp, 0xc
add eax, 0x10
push eax
lea edx, [esp + 0x1c8]
call fcn.00401720
or ebx, 0xffffffff
jmp 0x499f20
test al, 8
je 0x49a1e2
xor eax, 8
mov dword [esp + 0x10], eax
cmp edi, 0x43
jne 0x49a1a1
mov dword [esp + 0x14], 0x50f6ec
lea ebp, [edi - 0x40]
lea ebx, [edi - 0x3b]
jmp 0x499f20
mov ecx, dword [esp + 0x1c]
push ecx
push 0x50f54c
push str.Incorrect__s_at_offset__d
lea edx, [esp + 0x40]
mov dword [esp + 0x20], 0x50f658
mov ebp, 1
call fcn.0049aa70
mov edx, dword [esp + 0x2c]
add edx, 0x10
add esp, 0xc
push edx
lea edx, [esp + 0x38]
call fcn.00401720
or ebx, 0xffffffff
jmp 0x499f20
test al, 0x20
je 0x499f20
cmp edi, 0x3c
jne 0x49a1f9
or dword [esp + 0x10], 1
jmp 0x499f20
cmp edi, 0x3e
jne 0x499f20
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
sub eax, dword [edx + 0xc]
lea ebx, [edi + 2]
sar eax, 1
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
inc eax
mov dword [ecx + 8], eax
mov ecx, dword [esp + 0x20]
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.004c8f08
add esp, 0x348
ret
cmp edi, 0x3c
jne 0x49a25b
mov dword [esp + 0x10], 1
jmp 0x499f20
push edi
push str.__t_n_r
mov ebx, 4
call fcn.004c950c
add esp, 8
test eax, eax
je 0x499f0e
mov dword [esp + 0x10], 0x10
jmp 0x499f20
test ebx, ebx
jne 0x49a28e
mov eax, str.Element_end_tag
jmp 0x49a2b7
cmp ebx, 8
jne 0x49a29a
mov eax, str.CDATA_Section
jmp 0x49a2b7
cmp ebx, 0x10
jne 0x49a2a6
mov eax, str.Processing_instruction
jmp 0x49a2b7
cmp ebx, 0x20
jne 0x49a2b7
mov eax, str.Comment
jmp 0x49a2b7
mov eax, str.Doctype
mov esi, dword [esp + 0x20]
mov ecx, dword [esi + 4]
push ecx
push eax
push str._s_at_offset__d_unterminated
lea edx, [esp + 0x40]
or ebx, 0xffffffff
call fcn.0049aa70
add esp, 0xc
add esi, 0x10
push esi
lea edx, [esp + 0x38]
call fcn.00401720
jmp 0x49a216
sub edx, dword [ecx + 0xc]
sar edx, 1
dec edx
mov dword [esp + 0x1c], edx
jmp 0x49a216
sub edx, dword [ecx + 0xc]
mov ebx, 4
sar edx, 1
dec edx
mov dword [esp + 0x1c], edx
jmp 0x49a216