Function at 0x40d650
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x24]
mov edx, dword [eax + 0x10]
cmp byte [edx], 0x25
push edi
jne case.0x40d685.2
mov ecx, dword [esi + 0xac]
lea eax, [ecx + 1]
cmp eax, 0x11
ja case.default.0x40d685
movzx eax, byte [eax + 0x40da74]
jmp dword [eax*4 + 0x40da60]
xor ecx, ecx
lea edx, [ecx + 0x12]
call fcn.0040b640
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0xd4], 0
je 0x40d6af
cmp ecx, 0xffffffff
je case.0x40d685.2
push 0
push str.PEReference_in_prolog_n
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 3
mov dword [esi + 0x54], 0x13
push 0x13
jmp 0x40da2c
cmp dword [esi + 0xd4], 0
je 0x40d6e6
cmp ecx, 0xffffffff
je case.0x40d685.2
push 0
push str.PEReference_in_epilog_n
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 3
mov dword [esi + 0x54], 0x14
push 0x14
jmp 0x40da2c
cmp dword [esi + 0x60], 0
jne 0x40d71b
cmp dword [esi + 0x28], 1
je case.0x40d685.2
mov al, byte [edx + 1]
cmp al, 0x20
je case.0x40d685.2
cmp al, 9
jb 0x40d732
cmp al, 0xa
jbe case.0x40d685.2
cmp al, 0xd
je case.0x40d685.2
test al, al
je case.0x40d685.2
push esi
call sym.APEManTool.exe_xmlNextChar
add esp, 4
push esi
call sym.APEManTool.exe_xmlParseName
add esp, 4
mov ebx, eax
call fcn.00442300
mov edi, dword [0x5ad17c]
call edi
cmp dword [0x614d88], eax
jne 0x40d772
mov eax, 0x615580
jmp 0x40d77c
call sym.APEManTool.exe_xmlGetGlobalState
add eax, 0x1a4
cmp dword [eax], 0
je 0x40d7d8
call fcn.00442300
call edi
cmp dword [0x614d88], eax
jne 0x40d797
mov edi, 0x6155d8
jmp 0x40d7a4
call sym.APEManTool.exe_xmlGetGlobalState
mov edi, eax
add edi, 0x17c
call fcn.00442300
call dword [0x5ad17c]
cmp dword [0x614d88], eax
jne 0x40d7be
mov eax, 0x612d44
jmp 0x40d7c8
call sym.APEManTool.exe_xmlGetGlobalState
add eax, 0x174
mov ecx, dword [edi]
mov edx, dword [eax]
push ebx
push str.PEReference:__s_n
push ecx
call edx
add esp, 0xc
test ebx, ebx
jne 0x40d816
cmp dword [esi + 0xd4], ebx
je 0x40d7f1
cmp dword [esi + 0xac], 0xffffffff
je case.0x40d685.2
push 0
push str.PEReference:_no_name_n
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 3
mov dword [esi + 0x54], 0x18
push 0x18
jmp 0x40da2c
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x10]
cmp byte [ecx], 0x3b
jne 0x40d9fa
push esi
call sym.APEManTool.exe_xmlNextChar
mov eax, dword [esi]
add esp, 4
test eax, eax
je 0x40d84b
mov eax, dword [eax + 0x60]
test eax, eax
je 0x40d84b
mov edx, dword [esi + 4]
push ebx
push edx
call eax
mov edi, eax
add esp, 8
test edi, edi
jne 0x40d8c4
cmp dword [esi + 0x1c], 1
je 0x40d8ac
cmp dword [esi + 0x58], 0
jne 0x40d85d
cmp dword [esi + 0x5c], 0
je 0x40d8ac
cmp dword [esi + 0x68], 0
je 0x40d88b
cmp dword [esi + 0x70], 0
je 0x40d88b
xor eax, eax
push str.PEReference:____s__not_found_n
mov ecx, ebx
lea edx, [eax + 0x1b]
call fcn.0040bb00
add esp, 4
mov dword [esi + 0x64], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, ebx
mov edi, str.PEReference:____s__not_found_n
mov ebx, 0x1b
mov eax, esi
call fcn.0040ba70
mov dword [esi + 0x64], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ebx
mov edx, str.PEReference:____s__not_found_n
mov ecx, 0x1a
call fcn.0040bc60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x24]
cmp dword [eax + 0x28], 0x40d500
je 0x40d8ec
push edi
mov eax, esi
call fcn.0040d510
add esp, 4
push eax
push esi
call sym.APEManTool.exe_xmlPushInput
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x30]
cmp eax, 4
je 0x40d911
cmp eax, 5
je 0x40d911
mov eax, ebx
mov edx, str.PEReference:__s_is_not_a_parameter_entity_n
mov ecx, 0x1e
call fcn.0040bc60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push esi
call sym.APEManTool.exe_xmlNewEntityInputStream
push eax
push esi
call sym.APEManTool.exe_xmlPushInput
add esp, 0x10
test eax, eax
jl case.0x40d685.2
cmp dword [esi + 0x124], 0
jne 0x40d949
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x14]
sub ecx, dword [eax + 0x10]
cmp ecx, 0xfa
jge 0x40d949
call fcn.0040cc80
mov eax, dword [esi + 0x24]
mov edx, dword [eax + 0x14]
sub edx, dword [eax + 0x10]
cmp edx, 4
jl 0x40d996
mov eax, dword [eax + 0x10]
movzx ecx, byte [eax]
movzx edx, byte [eax + 1]
mov byte [esp + 0xc], cl
movzx ecx, byte [eax + 2]
mov byte [esp + 0xd], dl
movzx edx, byte [eax + 3]
lea eax, [esp + 0xc]
push 4
push eax
mov byte [esp + 0x16], cl
mov byte [esp + 0x17], dl
call sym.APEManTool.exe_xmlDetectCharEncoding
add esp, 8
test eax, eax
je 0x40d996
push eax
push esi
call sym.APEManTool.exe_xmlSwitchEncoding
add esp, 8
cmp dword [edi + 0x30], 5
jne case.0x40d685.2
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx + 0x10]
cmp byte [eax], 0x3c
jne case.0x40d685.2
cmp byte [eax + 1], 0x3f
jne case.0x40d685.2
cmp byte [eax + 2], 0x78
jne case.0x40d685.2
cmp byte [eax + 3], 0x6d
jne case.0x40d685.2
cmp byte [eax + 4], 0x6c
jne case.0x40d685.2
mov al, byte [eax + 5]
cmp al, 0x20
je 0x40d9ea
cmp al, 9
jb 0x40d9e6
cmp al, 0xa
jbe 0x40d9ea
cmp al, 0xd
jne case.0x40d685.2
push esi
call sym.APEManTool.exe_xmlParseTextDecl
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0xd4], 0
je 0x40da0c
cmp dword [esi + 0xac], 0xffffffff
je case.0x40d685.2
push 0
push str.PEReference:_expecting___n
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.APEManTool.exe___xmlRaiseError
add esp, 0x44
cmp dword [esi + 0x120], 0
mov dword [esi + 0xc], 0
jne case.0x40d685.2
mov dword [esi + 0xd4], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret