Function at 0x1002b2f0
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x10]
cmp byte [ecx], 0x25
push edi
mov dword [esp + 0x14], 0
jne case.0x1002b33e.2
mov eax, dword [esi + 0xac]
inc eax
cmp eax, 0x11
ja case.default.0x1002b33e
movzx edx, byte [eax + 0x1002b808]
jmp dword [edx*4 + 0x1002b7f4]
push 0x12
xor edi, edi
call fcn.100290d0
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.100ca320
mov esp, ebp
pop ebp
ret
push 0x13
xor edi, edi
call fcn.100290d0
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.100ca320
mov esp, ebp
pop ebp
ret
push 0x14
xor edi, edi
call fcn.100290d0
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.100ca320
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x60], 0
jne 0x1002b3b8
cmp dword [esi + 0x28], 1
je case.0x1002b33e.2
mov al, byte [ecx + 1]
cmp al, 0x20
je case.0x1002b33e.2
cmp al, 9
jb 0x1002b3cf
cmp al, 0xa
jbe case.0x1002b33e.2
cmp al, 0xd
je case.0x1002b33e.2
test al, al
je case.0x1002b33e.2
push esi
call sym.libxml2.dll_xmlNextChar
add esp, 4
push esi
call sym.libxml2.dll_xmlParseName
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
call fcn.10059ad0
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call ebx
cmp dword [0x100fbd44], eax
jne 0x1002b413
mov eax, 0x1010c1a0
jmp 0x1002b41d
call sym.libxml2.dll_xmlGetGlobalState
add eax, 0x1a4
cmp dword [eax], 0
je 0x1002b47d
call fcn.10059ad0
call ebx
cmp dword [0x100fbd44], eax
jne 0x1002b438
mov edi, 0x1010c1f8
jmp 0x1002b445
call sym.libxml2.dll_xmlGetGlobalState
mov edi, eax
add edi, 0x17c
call fcn.10059ad0
call ebx
cmp dword [0x100fbd44], eax
jne 0x1002b45b
mov eax, 0x100fac24
jmp 0x1002b465
call sym.libxml2.dll_xmlGetGlobalState
add eax, 0x174
mov ecx, dword [esp + 0x10]
mov edx, dword [edi]
mov eax, dword [eax]
push ecx
push str.PEReference:__s_n
push edx
call eax
mov edi, dword [esp + 0x1c]
add esp, 0xc
test edi, edi
jne 0x1002b4ed
push 0x80
lea ecx, [esp + 0x1d]
push edi
push ecx
mov byte [esp + 0x24], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
cmp dword [esi + 0xd4], edi
je 0x1002b4ae
cmp dword [esi + 0xac], 0xffffffff
je case.0x1002b33e.2
push str.PEReference:_no_name
push 0x100d3660
lea edx, [esp + 0x20]
push 0x80
push edx
call dword [sym.imp.MSVCR90.dll__snprintf]
push 0
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 3
mov dword [esi + 0x54], 0x18
push 0x18
jmp 0x1002b7b2
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx + 0x10]
cmp byte [edx], 0x3b
jne 0x1002b74d
push esi
call sym.libxml2.dll_xmlNextChar
mov eax, dword [esi]
add esp, 4
test eax, eax
je 0x1002b520
mov eax, dword [eax + 0x60]
test eax, eax
je 0x1002b520
mov ecx, dword [esi + 4]
push edi
push ecx
call eax
add esp, 8
mov dword [esp + 0x14], eax
cmp dword [esi + 0xac], 0xffffffff
je case.0x1002b33e.2
mov ebx, dword [esp + 0x14]
test ebx, ebx
jne 0x1002b5da
cmp dword [esi + 0x1c], 1
je 0x1002b5b4
cmp dword [esi + 0x58], ebx
jne 0x1002b549
cmp dword [esi + 0x5c], ebx
je 0x1002b5b4
cmp dword [esi + 0x68], 0
je 0x1002b585
cmp dword [esi + 0x70], 0
je 0x1002b585
xor eax, eax
push str.PEReference:____s__not_found_n
mov ecx, edi
lea edx, [eax + 0x1b]
call fcn.10029620
add esp, 4
mov dword [esi + 0x64], 0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.100ca320
mov esp, ebp
pop ebp
ret
mov ecx, edi
mov edi, str.PEReference:____s__not_found_n
mov ebx, 0x1b
mov eax, esi
call fcn.10029590
mov dword [esi + 0x64], 0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.100ca320
mov esp, ebp
pop ebp
ret
mov eax, edi
mov edx, str.PEReference:____s__not_found_n
mov ecx, 0x1a
call fcn.10029780
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.100ca320
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x24]
cmp dword [edx + 0x28], 0x1002b1a0
je 0x1002b610
push ebx
mov eax, esi
call fcn.1002b1b0
add esp, 4
push eax
push esi
call sym.libxml2.dll_xmlPushInput
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.100ca320
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x30]
cmp eax, 4
je 0x1002b643
cmp eax, 5
je 0x1002b643
mov eax, edi
mov edx, str.PEReference:__s_is_not_a_parameter_entity_n
mov ecx, 0x1e
call fcn.10029780
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.100ca320
mov esp, ebp
pop ebp
ret
push ebx
push esi
call sym.libxml2.dll_xmlNewEntityInputStream
push eax
push esi
call sym.libxml2.dll_xmlPushInput
add esp, 0x10
test eax, eax
jl case.0x1002b33e.2
cmp dword [esi + 0x124], 0
jne 0x1002b67d
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x14]
sub ecx, dword [eax + 0x10]
cmp ecx, 0xfa
jge 0x1002b67d
mov eax, esi
call fcn.1002a8f0
cmp dword [esi + 0xac], 0xffffffff
je case.0x1002b33e.2
mov eax, dword [esi + 0x24]
mov edx, dword [eax + 0x14]
sub edx, dword [eax + 0x10]
cmp edx, 4
jl 0x1002b6d7
mov eax, dword [eax + 0x10]
movzx ecx, byte [eax]
movzx edx, byte [eax + 1]
mov byte [esp + 0x10], cl
movzx ecx, byte [eax + 2]
mov byte [esp + 0x11], dl
movzx edx, byte [eax + 3]
lea eax, [esp + 0x10]
push 4
push eax
mov byte [esp + 0x1a], cl
mov byte [esp + 0x1b], dl
call sym.libxml2.dll_xmlDetectCharEncoding
add esp, 8
test eax, eax
je 0x1002b6d7
push eax
push esi
call sym.libxml2.dll_xmlSwitchEncoding
add esp, 8
cmp dword [ebx + 0x30], 5
jne case.0x1002b33e.2
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx + 0x10]
cmp byte [eax], 0x3c
jne case.0x1002b33e.2
cmp byte [eax + 1], 0x3f
jne case.0x1002b33e.2
cmp byte [eax + 2], 0x78
jne case.0x1002b33e.2
cmp byte [eax + 3], 0x6d
jne case.0x1002b33e.2
cmp byte [eax + 4], 0x6c
jne case.0x1002b33e.2
mov al, byte [eax + 5]
cmp al, 0x20
je 0x1002b72f
cmp al, 9
jb 0x1002b727
cmp al, 0xa
jbe 0x1002b72f
cmp al, 0xd
jne case.0x1002b33e.2
push esi
call sym.libxml2.dll_xmlParseTextDecl
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.100ca320
mov esp, ebp
pop ebp
ret
push 0x80
lea edx, [esp + 0x1d]
push 0
push edx
mov byte [esp + 0x24], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
cmp dword [esi + 0xd4], 0
je 0x1002b778
cmp dword [esi + 0xac], 0xffffffff
je case.0x1002b33e.2
push str.PEReference:_expecting__
push 0x100d3660
lea eax, [esp + 0x20]
push 0x80
push eax
call dword [sym.imp.MSVCR90.dll__snprintf]
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 3
mov dword [esi + 0x54], 0x19
push 0x19
push 1
push 0
push esi
push 0
push 0
push 0
call sym.libxml2.dll___xmlRaiseError
add esp, 0x54
cmp dword [esi + 0x120], 0
mov dword [esi + 0xc], 0
jne case.0x1002b33e.2
mov dword [esi + 0xd4], 1
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100ca320
mov esp, ebp
pop ebp
ret