Function at 0x454156
Capabilities:
Parse credit card information
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c4
mov al, byte [ecx + 9]
push esi
xor esi, esi
cmp dword [ebp + 0x10], esi
push edi
setl byte [ebp - 0x11]
and al, 0x11
cmp byte [ebp - 0x11], 0
mov dword [ebp - 0x18], ecx
mov byte [ebp - 5], al
jne 0x454181
test byte [ebp + 0x14], 0x80
je 0x454185
mov byte [ebp - 5], 0
mov eax, dword [ebp + 0x18]
and byte [ebp + 0x14], 1
cmp eax, esi
mov byte [ebp - 0x1e], 0
mov byte [ebp - 0x1d], 0
je 0x45419d
mov al, byte [eax]
mov byte [ebp - 0x1d], al
push ebx
push 0x50
pop eax
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0xc], esi
call fcn.00443f79
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x48], esi
call fcn.0044b760
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x50]
jae 0x454a9c
cmp word [ebx], 0
je 0x454a9c
lea ecx, [ebp - 0x6c]
call fcn.0044b852
push 0x25
pop esi
cmp word [ebx], si
je 0x454232
mov ecx, dword [ebp - 0x48]
sub ecx, dword [ebp - 4]
sar ecx, 1
jmp 0x45422a
mov ax, word [ebx]
test ax, ax
je 0x4541e1
cmp ax, si
je 0x4541e1
mov edx, dword [ebp - 4]
mov word [edx], ax
add dword [ebp - 4], 2
inc ebx
inc ebx
dec ecx
mov dword [ebp - 0xc], ecx
jns 0x454211
jmp 0x4541e1
cmp byte [ebp + 0x14], 0
mov dword [ebp - 0x2c], ebx
je 0x454472
lea edx, [ebx + 2]
mov cx, word [edx]
cmp cx, si
jne 0x454259
mov eax, dword [ebp - 4]
mov word [eax], si
add dword [ebp - 4], 2
add ebx, 4
jmp 0x4541e1
cmp cx, 0x23
jne 0x45429e
mov eax, dword [edi + 0x3c]
add ebx, 4
test eax, eax
mov dword [ebp + 8], ebx
je 0x4541db
mov ecx, dword [edi + 0x38]
mov eax, dword [eax + ecx*4 + 8]
mov cx, word [eax]
test cx, cx
je 0x4541db
mov edx, dword [ebp - 4]
mov word [edx], cx
add dword [ebp - 4], 2
inc eax
inc eax
xor ecx, ecx
mov cx, word [eax]
test cx, cx
jne 0x454283
jmp 0x4541e1
cmp cx, 0x2a
jne 0x454301
mov eax, dword [edi + 0x3c]
add ebx, 4
test eax, eax
mov dword [ebp + 8], ebx
je 0x4541db
mov ecx, dword [edi + 0x38]
push dword [eax + ecx*4]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov esi, eax
lea eax, [esi + 2]
push eax
lea ecx, [ebp - 0x6c]
call fcn.0044b7d7
mov eax, dword [edi + 0x38]
mov ecx, dword [edi + 0x3c]
mov eax, dword [ecx + eax*4]
dec esi
mov dword [ebp - 0xc], esi
js 0x4541db
lea ecx, [esi + 1]
sub esi, ecx
mov dword [ebp - 0xc], esi
mov dx, word [eax]
mov esi, dword [ebp - 4]
mov word [esi], dx
add dword [ebp - 4], 2
inc eax
inc eax
dec ecx
jne 0x4542ea
jmp 0x4541e1
cmp cx, 0x40
jne 0x454366
mov eax, dword [edi + 0x3c]
add ebx, 4
test eax, eax
mov dword [ebp + 8], ebx
je 0x4541db
mov ecx, dword [edi + 0x38]
push dword [eax + ecx*4 + 4]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov esi, eax
lea eax, [esi + 2]
push eax
lea ecx, [ebp - 0x6c]
call fcn.0044b7d7
mov eax, dword [edi + 0x38]
mov ecx, dword [edi + 0x3c]
mov eax, dword [ecx + eax*4 + 4]
dec esi
mov dword [ebp - 0xc], esi
js 0x4541db
lea ecx, [esi + 1]
sub esi, ecx
mov dword [ebp - 0xc], esi
mov dx, word [eax]
mov esi, dword [ebp - 4]
mov word [esi], dx
add dword [ebp - 4], 2
inc eax
inc eax
dec ecx
jne 0x45434f
jmp 0x4541e1
push ecx
call fcn.004439f7
add esp, 4
test al, al
jne 0x454394
cmp cx, 0x7e
jb 0x454472
xor eax, eax
mov ax, word [ebx + 4]
push eax
call fcn.004439f7
add esp, 4
test al, al
je 0x454472
and dword [ebp - 0x34], 0
cmp cx, 0x7e
jb 0x4543a3
mov dword [ebp - 0x34], esi
mov ebx, edx
inc ebx
inc ebx
xor esi, esi
mov si, word [ebx]
mov dword [ebp + 8], ebx
xor ecx, ecx
xor edi, edi
push esi
call fcn.004439f7
add esp, 4
test al, al
je 0x4543f2
push 0
push 0xa
push edi
push ecx
call fcn.004aa130
mov ecx, eax
movzx eax, si
mov edi, edx
cdq
add ecx, eax
adc edi, edx
add ecx, 0xffffffd0
adc edi, 0xffffffff
inc ebx
inc ebx
xor esi, esi
mov si, word [ebx]
push esi
call fcn.004439f7
add esp, 4
test al, al
jne 0x4543be
mov dword [ebp + 8], ebx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x38]
cdq
cmp edi, edx
ja 0x4541db
jb 0x45440b
cmp ecx, eax
jae 0x4541db
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x4541db
mov esi, dword [eax + ecx*4]
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
cmp dword [ebp - 0x34], 0
mov edi, eax
je 0x45443d
cmp word [esi], 0x22
jne 0x45443d
cmp word [esi + edi*2 - 2], 0x22
jne 0x45443a
dec edi
dec edi
inc esi
inc esi
lea eax, [edi + 2]
push eax
lea ecx, [ebp - 0x6c]
call fcn.0044b7d7
dec edi
mov dword [ebp - 0xc], edi
js 0x4541db
lea eax, [edi + 1]
sub edi, eax
mov dword [ebp - 0xc], edi
mov cx, word [esi]
mov edx, dword [ebp - 4]
mov word [edx], cx
add dword [ebp - 4], 2
inc esi
inc esi
dec eax
jne 0x45445b
jmp 0x4541de
lea edi, [ebx + 2]
mov esi, edi
jmp 0x45447b
inc esi
inc esi
cmp word [esi], 0x26
je 0x454479
mov ebx, dword [sym.imp.SHLWAPI.DLL_StrCmpNIW]
push 7
push 0x4c5928
push esi
call ebx
test eax, eax
jne 0x4544a2
call fcn.00440118
and edx, 0x7fffffff
jmp 0x4544ba
push 7
push 0x4c5918
push esi
call ebx
test eax, eax
jne 0x45452f
mov eax, dword [ebp - 0x18]
add eax, 0x75bd036
xor edx, edx
and word [ebp - 0x110], 0
push edx
push eax
lea eax, [ebp - 0x110]
lea ebx, [esi + 0xe]
push eax
mov dword [ebp + 8], ebx
call fcn.00497ed3
and word [ebp - 0x6e], 0
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov esi, eax
cmp esi, 1
jge 0x4544f4
xor esi, esi
lea eax, [esi + 2]
push eax
lea ecx, [ebp - 0x6c]
call fcn.0044b7d7
dec esi
lea eax, [ebp - 0x110]
mov dword [ebp - 0xc], esi
js 0x4541db
lea ecx, [esi + 1]
sub esi, ecx
mov dword [ebp - 0xc], esi
mov dx, word [eax]
mov esi, dword [ebp - 4]
mov word [esi], dx
add dword [ebp - 4], 2
inc eax
inc eax
dec ecx
jne 0x454518
jmp 0x4541de
mov ecx, edi
jmp 0x454541
cmp ax, 0x25
je 0x45454c
cmp ax, 0x3d
je 0x45454c
inc ecx
inc ecx
mov ax, word [ecx]
test ax, ax
mov dword [ebp + 8], ecx
jne 0x454533
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x2c]
mov eax, ebx
sub eax, ecx
sar eax, 1
cmp word [ebx], 0x25
mov dword [ebp - 0x38], eax
movsx eax, byte [ebp - 5]
mov dword [ebp - 0x34], ecx
mov byte [ebp - 6], 0
mov dword [ebp - 0x4c], eax
jne 0x4549c7
cmp byte [ebp - 0x11], 0
jne 0x4545b3
mov ax, word [edi]
cmp ax, 0x26
je 0x45458e
cmp byte [ebp - 5], 0
je 0x4545b3
cmp ax, 0x5e
je 0x4545b3
add dword [ebp + 8], 2
cmp word [edi], 0x26
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x40], edi
jne 0x4546dc
inc edi
inc edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x4c], 1
jmp 0x4546dc
add dword [ebp + 8], 2
mov eax, edi
cmp word [eax], 0x5e
mov dword [ebp - 0x2c], eax
jne 0x4545cb
inc eax
inc eax
mov dword [ebp - 0x2c], eax
mov byte [ebp - 6], 8
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x28]
xor esi, esi
mov edi, 0xcb
mov word [ecx], si
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x30], 0x7fffffff
jmp 0x454601
mov cx, word [eax]
test cx, cx
je 0x454646
cmp cx, 0x3a
jne 0x4545ff
cmp word [eax + 2], 0x7e
je 0x45460a
inc eax
inc eax
cmp eax, ebx
mov dword [ebp - 0x1c], eax
jb 0x4545ea
jmp 0x454646
and word [eax], 0
add dword [ebp - 0x1c], 4
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004404ef
mov eax, dword [ebp - 0x1c]
mov ax, word [eax]
pop ecx
pop ecx
call fcn.0044252e
test al, al
je 0x454646
add dword [ebp - 0x1c], 2
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004404ef
pop ecx
pop ecx
cmp byte [ebp - 0x1d], 0
jne 0x4546a7
mov edi, dword [sym.imp.KERNEL32.DLL_SetLastError]
push 0
call edi
push dword [ebp - 0x54]
and word [ebx], 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
jle 0x45469a
mov eax, dword [ebp - 0x28]
cmp word [eax], 0
jne 0x45469a
add esi, 0x64
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x54], esi
call fcn.00443fa0
push 0
call edi
push esi
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
mov esi, eax
mov word [ebx], 0x25
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x4548a7
test esi, esi
jg 0x454a3f
cmp edi, 0xcb
jne 0x454a3f
cmp byte [ebp - 6], al
jne 0x4549ad
cmp byte [ebp - 0x11], al
mov byte [ebp - 6], 1
jne 0x4549ad
mov eax, dword [ebp - 0x40]
xor edx, edx
mov dword [ebp - 0x10], eax
xor esi, esi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x30], 0x7fffffff
jmp 0x45471d
mov cx, word [eax]
cmp cx, dx
je 0x45485b
cmp cx, 0x3a
jne 0x45470e
cmp word [eax + 2], 0x7e
je 0x454726
inc eax
inc eax
cmp cx, 0x3f
mov dword [ebp - 0x10], eax
je 0x454801
cmp eax, ebx
jb 0x4546f5
jmp 0x45485b
mov ecx, dword [ebp - 0x18]
xor esi, esi
push esi
push 0xffffffffffffffff
push esi
push dword [ebp - 0x40]
mov word [eax], si
call fcn.00410728
mov edi, eax
mov eax, dword [ebp - 0x10]
mov word [eax], 0x3a
add dword [ebp - 0x10], 4
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004404ef
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
mov ax, word [ecx]
call fcn.0044252e
test al, al
je 0x45478a
lea eax, [ebp - 0x30]
push eax
inc ecx
lea eax, [ebp - 0x10]
inc ecx
push eax
mov dword [ebp - 0x10], ecx
call fcn.004404ef
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
jmp 0x45478a
cmp ax, 0x25
je 0x454794
inc ecx
inc ecx
mov dword [ebp - 0x10], ecx
mov ax, word [ecx]
cmp ax, si
jne 0x45477f
jmp 0x45479a
add ecx, 2
mov dword [ebp + 8], ecx
cmp edi, esi
je 0x454887
mov esi, dword [edi + 4]
mov ecx, dword [edi + 0x10]
mov edx, dword [ebp - 0x3c]
cmp edx, ecx
mov eax, esi
lea edi, [esi + ecx*2]
mov dword [ebp - 0x10], eax
jle 0x4547b9
mov edx, ecx
cmp dword [ebp - 0x30], ecx
mov ebx, ecx
jg 0x4547c3
mov ebx, dword [ebp - 0x30]
test edx, edx
mov dword [ebp - 0xc], ebx
jl 0x454912
test ebx, ebx
jl 0x454912
test edx, edx
jle 0x45496f
lea ecx, [esi + edx*2]
cmp esi, ecx
jae 0x45490a
cmp word [eax], 0
je 0x454902
inc eax
inc eax
cmp eax, ecx
mov dword [ebp - 0x10], eax
jb 0x4547e9
jmp 0x45490a
lea esi, [eax - 2]
mov word [esi], dx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], esi
jmp 0x45481a
inc ecx
inc ecx
cmp ax, 0x3a
mov dword [ebp - 0x10], ecx
je 0x454824
mov ax, word [ecx]
cmp ax, dx
jne 0x45480f
jmp 0x454827
mov dword [ebp - 0x1c], ecx
cmp word [ebx], dx
je 0x45485b
cmp word [ebx + 2], 0x25
jne 0x45485b
lea eax, [ebx + 4]
cmp word [eax], 0x64
jne 0x45485b
jmp 0x454846
cmp cx, 0x25
je 0x454853
inc eax
inc eax
mov dword [ebp - 0x10], eax
mov cx, word [eax]
cmp cx, dx
jne 0x45483e
jmp 0x45485b
mov ebx, eax
add eax, 2
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 0x18]
xor edi, edi
push edi
push 0xffffffffffffffff
push edi
push dword [ebp - 0x40]
mov word [ebx], di
call fcn.00410728
cmp esi, edi
mov word [ebx], 0x25
je 0x45487f
mov word [esi], 0x3f
inc esi
inc esi
cmp eax, edi
jne 0x454955
cmp dword [ebp - 0x4c], 0
jne 0x4541db
cmp byte [ebp - 6], 0
jne 0x454949
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 6], 1
jmp 0x4545ce
cmp dword [ebp - 0x24], esi
mov word [eax], 0x3a
jle 0x4548b4
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x30], esi
jle 0x4548bc
mov dword [ebp - 0x30], esi
cmp dword [ebp - 0x24], 0
jge 0x4548d1
mov eax, esi
neg eax
cmp dword [ebp - 0x24], eax
jge 0x4548ce
mov dword [ebp - 0x24], eax
add dword [ebp - 0x24], esi
mov ecx, dword [ebp - 0x30]
mov eax, esi
sub eax, dword [ebp - 0x24]
test ecx, ecx
jge 0x4548e8
lea esi, [eax + ecx]
test esi, esi
jge 0x4548f4
xor esi, esi
jmp 0x4548f4
cmp esi, eax
jle 0x4548ee
mov esi, eax
cmp esi, ecx
jle 0x4548f4
mov esi, ecx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
lea edi, [eax + ecx*2]
jmp 0x454a6f
sub eax, esi
sar eax, 1
mov edx, eax
xor ebx, ebx
lea esi, [esi + edx*2]
mov dword [ebp - 0xc], ebx
jmp 0x45496f
cmp word [esi], 0
je 0x454927
cmp eax, edi
jae 0x454927
inc eax
inc eax
mov dword [ebp - 0x10], eax
cmp word [eax], 0
jne 0x454918
sub eax, esi
sar eax, 1
test edx, edx
jge 0x454935
add edx, eax
jns 0x454935
xor edx, edx
test ebx, ebx
jge 0x454941
sub eax, edx
add ebx, eax
jns 0x454941
xor ebx, ebx
mov dword [ebp - 0xc], ebx
lea esi, [esi + edx*2]
jmp 0x45496f
cmp byte [ebp - 5], 1
je 0x4541db
jmp 0x4549c3
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x1c4]
push ecx
push esi
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.0044b8c2
add esp, 0x14
mov esi, eax
mov eax, dword [ebp - 0xc]
add eax, 2
push eax
lea ecx, [ebp - 0x6c]
call fcn.0044b7d7
jmp 0x45499a
mov ax, word [esi]
mov ecx, dword [ebp - 4]
mov word [ecx], ax
mov eax, dword [ebp - 4]
mov ax, word [eax]
add dword [ebp - 4], 2
inc esi
inc esi
test ax, ax
je 0x4549a4
dec dword [ebp - 0xc]
jns 0x454980
jmp 0x4541db
sub dword [ebp - 4], 2
jmp 0x4541db
cmp byte [ebp - 5], 1
jne 0x4549bb
xor al, al
je 0x4541db
sub dword [ebp + 8], 2
xor al, al
je 0x4549c7
sub dword [ebp + 8], 2
mov eax, dword [ebp - 0x38]
add eax, 3
push eax
lea ecx, [ebp - 0x6c]
call fcn.0044b7d7
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x25
jne 0x454a16
add ecx, 2
mov ax, word [ecx]
cmp ax, 0x25
je 0x454a10
cmp ax, 0x2a
je 0x454a10
cmp ax, 0x40
je 0x454a10
cmp ax, 0x23
je 0x454a10
cmp ax, 0x7e
je 0x454a10
push eax
call fcn.004439f7
add esp, 4
test al, al
je 0x454a16
inc dword [ebp - 0x38]
mov dword [ebp + 8], ecx
dec dword [ebp - 0x38]
js 0x4541db
mov eax, dword [ebp - 0x38]
inc eax
mov ecx, dword [ebp - 0x34]
mov cx, word [ecx]
mov edx, dword [ebp - 4]
add dword [ebp - 0x34], 2
mov word [edx], cx
add dword [ebp - 4], 2
dec eax
jne 0x454a23
jmp 0x4541db
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x454a64
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x92], 0
jne 0x454a64
push 0x25
push dword [ebp - 0x28]
call dword [sym.imp.SHLWAPI.DLL_StrChrW]
test eax, eax
je 0x454a64
mov byte [edi], 1
test esi, esi
jle 0x454a6c
mov byte [ebp - 0x1e], 1
mov edi, dword [ebp - 0x28]
lea eax, [esi + 2]
push eax
lea ecx, [ebp - 0x6c]
call fcn.0044b7d7
dec esi
js 0x4541db
lea eax, [esi + 1]
mov cx, word [edi]
mov edx, dword [ebp - 4]
mov word [edx], cx
add dword [ebp - 4], 2
inc edi
inc edi
dec eax
jne 0x454a85
jmp 0x4541db
and word [eax], 0
cmp byte [ebp - 0x1e], 0
pop ebx
jne 0x454aba
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x454aba
cmp byte [edi + 0x92], 0
jne 0x454aba
mov byte [eax], 1
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0x44]
mov ecx, dword [ebp + 0xc]
sar eax, 1
inc eax
inc eax
push eax
call fcn.00443fa0
mov esi, dword [ebp - 4]
sub esi, dword [ebp - 0x44]
lea ecx, [ebp - 0x28]
sar esi, 1
call fcn.0043db4f
pop edi
mov eax, esi
pop esi
leave
ret 0x14